Skip to content

Commit 091f4cb

Browse files
committed
ci: run mypy as part of checks
Signed-off-by: Yann Dirson <[email protected]>
1 parent 1ebdd95 commit 091f4cb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/jobs-check.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,21 @@ jobs:
1919
run: cp data.py-dist data.py
2020
- name: jobs-check
2121
run: ./jobs.py check
22+
23+
mypy:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: 3.8
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install -r requirements/base.txt
35+
pip install mypy
36+
- name: Create a dummy data.py
37+
run: cp data.py-dist data.py
38+
- name: Check with mypy
39+
run: mypy lib/ tests/

0 commit comments

Comments
 (0)