Skip to content

Commit

Permalink
ci: add mypy check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Aug 10, 2024
1 parent c3b2ccf commit 645fc20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -19,11 +19,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
python -m pip install --upgrade flake8
python -m pip install --upgrade mypy
python -m pip install poetry
poetry install -v
- name: Run flake8
run: flake8 argx
- name: Run mypy
run: mypy -p argx
- name: Test with pytest
run: poetry run pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: Upload pytest test results
Expand Down

0 comments on commit 645fc20

Please sign in to comment.