diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b71c50f1..95cd42e4f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,7 @@ jobs: strategy: matrix: python-version: ['3.10', '3.11', '3.12', '3.13'] + mypy-version: ['1.13', '1.14', '1.15', 'latest'] fail-fast: false steps: - uses: actions/checkout@v4 @@ -38,6 +39,14 @@ jobs: - name: Install dependencies run: uv sync --no-dev --group tests + - name: Override mypy version + run: | + if [ "${{ matrix.mypy-version }}" == "latest" ]; then + uv pip install git+https://github.com/python/mypy.git@master + else + uv pip install mypy==${{ matrix.mypy-version }} + fi + - name: Run mypy on plugin code run: uv run mypy --strict mypy_django_plugin - name: Run mypy on ext code