Skip to content

Commit

Permalink
ci: Add a Python type-checking job
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Mar 11, 2024
1 parent a6797ef commit 657d1ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,19 @@ jobs:
- run: pip install black==23.11.0
- run: black --check --diff .

# https://github.com/python/mypy
mypy:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
# mypy gets upset about \ in f-strings if Python is too old.
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install mypy==1.9.0
- run: mypy --strict $(find . -name "*.py")

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

0 comments on commit 657d1ec

Please sign in to comment.