Skip to content

Commit cb6eb42

Browse files
committed
Run mypy_test for 3.14 on Python 3.13 for now
1 parent 8783206 commit cb6eb42

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
strategy:
6262
matrix:
6363
platform: ["linux", "win32", "darwin"]
64-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
64+
# TODO (2025-05-10) "3.13.2" should be "3.14-dev", see below.
65+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13.2"]
6566
fail-fast: false
6667
steps:
6768
- uses: actions/checkout@v4
@@ -77,7 +78,14 @@ jobs:
7778
printf "Installing APT packages:\n $(echo $DEPENDENCIES | sed 's/ /\n /g')\n"
7879
sudo apt-get install -qy $DEPENDENCIES
7980
fi
80-
- run: |
81+
- name: Run mypy_test.py
82+
run: |
83+
# TODO: (2025-05-10) This is a bad hack to work around mypy crashing
84+
# when running on Python 3.14. See https://github.com/python/mypy/pull/19020.
85+
if [[ "${{ matrix.python-version }}" == "3.12.2" ]]; then
86+
MYPY_PY_VERSION="3.14-dev"
87+
fi
88+
8189
# python-version can sometimes be pinned to a specific version or to "-dev", but
8290
# mypy understands only X.Y version numbers.
8391
MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2)

0 commit comments

Comments
 (0)