Skip to content

Merge pull request #42 from ericfell/issue-38-str-enum #223

Merge pull request #42 from ericfell/issue-38-str-enum

Merge pull request #42 from ericfell/issue-38-str-enum #223

Workflow file for this run

name: Run tests and Codecov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Run tests and collect coverage
run: pytest --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Mypy static type check
run: mypy src/
- name: pylint
run: pylint src/