Skip to content

Commit 7c7def8

Browse files
committed
Add mypy CI
1 parent fde9840 commit 7c7def8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/test-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,30 @@ jobs:
6767
name: ${{ matrix.python-version }}-cov-lcov
6868
path: coverage.lcov
6969
if-no-files-found: warn
70+
mypy:
71+
runs-on: ubuntu-latest
72+
strategy:
73+
# don't cancel any remaining jobs when one fails
74+
fail-fast: false
75+
# how you define a matrix strategy
76+
matrix:
77+
# use these pythons
78+
python-version: [ "3.11", "3.14" ]
79+
steps:
80+
- uses: actions/checkout@v6
81+
- name: Set up Python ${{ matrix.python-version }}
82+
uses: actions/setup-python@v6
83+
with:
84+
python-version: ${{ matrix.python-version }}
85+
cache: 'pip'
86+
cache-dependency-path: |
87+
dev-requirements.txt
88+
setup.py
89+
90+
- name: Install dev dependencies
91+
run: python -m pip install -r dev-requirements.txt
92+
- name: Install self (dpytest)
93+
run: python -m pip install .
94+
- name: Run mypy
95+
run: mypy
7096

0 commit comments

Comments
 (0)