Skip to content

Commit 5ade464

Browse files
Run different version of mypy in ci
1 parent 0faf179 commit 5ade464

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
python-version: ['3.10', '3.11', '3.12', '3.13']
28+
mypy-version: ['1.13', '1.14', '1.15', 'latest']
2829
fail-fast: false
2930
steps:
3031
- uses: actions/checkout@v4
@@ -38,6 +39,14 @@ jobs:
3839
- name: Install dependencies
3940
run: uv sync --no-dev --group tests
4041

42+
- name: Override mypy version
43+
run: |
44+
if [ "${{ matrix.mypy-version }}" == "latest" ]; then
45+
uv pip install git+https://github.com/python/mypy.git@master
46+
else
47+
uv pip install mypy==${{ matrix.mypy-version }}
48+
fi
49+
4150
- name: Run mypy on plugin code
4251
run: uv run mypy --strict mypy_django_plugin
4352
- name: Run mypy on ext code

0 commit comments

Comments
 (0)