Skip to content

Commit

Permalink
Add mypy run to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed May 31, 2024
1 parent 7a1f154 commit f610da8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
pip install -e '.[dev]'
nose2 -v --pretty-assert
typing:
name: 'typing (mypy)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install tox
- run: tox run -e mypy

test:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ commands = pre-commit run --all-files
[testenv:mypy]
extras = dev
deps =
mypy
mypy==1.10.0
types-setuptools
types-docutils
tomli
Expand Down

0 comments on commit f610da8

Please sign in to comment.