Skip to content

Commit c1876f9

Browse files
committed
Mypy workflow
1 parent 510ac71 commit c1876f9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,25 @@ jobs:
4444
run: poetry install
4545
- name: Check ruff
4646
run: poetry run ruff check .
47+
48+
mypy:
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
python-version: [3.12]
53+
poetry-version: [1.8.3]
54+
os: [ubuntu-latest]
55+
runs-on: ${{ matrix.os }}
56+
steps:
57+
- uses: actions/checkout@v2
58+
- uses: actions/setup-python@v2
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
- name: Run image
62+
uses: abatilo/[email protected]
63+
with:
64+
poetry-version: ${{ matrix.poetry-version }}
65+
- name: Install dependencies
66+
run: poetry install
67+
- name: Check mypy
68+
run: poetry run mypy . --check-untyped-defs --disallow-untyped-defs --ignore-missing-imports

0 commit comments

Comments
 (0)