From 7a2807a1b96016d490cad6f05bb0ce16be50e8b7 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Wed, 28 May 2025 12:04:14 +0200 Subject: [PATCH 1/2] [CI] Remove hack to run mypy for Python 3.14 --- .github/workflows/tests.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dffdbc58e56e..559e902efe30 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,8 +61,7 @@ jobs: strategy: matrix: platform: ["linux", "win32", "darwin"] - # TODO (2025-05-10) "3.13.2" should be "3.14-dev", see below. - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.13.2"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"] fail-fast: false steps: - uses: actions/checkout@v4 @@ -81,15 +80,9 @@ jobs: fi - name: Run mypy_test.py run: | - # TODO: (2025-05-10) This is a bad hack to work around mypy crashing - # when running on Python 3.14. See https://github.com/python/mypy/pull/19020. - if [[ "${{ matrix.python-version }}" == "3.13.2" ]]; then - MYPY_PY_VERSION="3.14" - else - # python-version can sometimes be pinned to a specific version or to "-dev", but - # mypy understands only X.Y version numbers. - MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2) - fi + # python-version can sometimes be pinned to a specific version or to "-dev", but + # mypy understands only X.Y version numbers. + MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2) python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${MYPY_PY_VERSION} regression-tests: From a360fedb506f080d3fb417e1a3439450d4d52728 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 11 Jul 2025 15:49:24 +0200 Subject: [PATCH 2/2] Use allow-prereleases --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 559e902efe30..827122e6819b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,13 +61,14 @@ jobs: strategy: matrix: platform: ["linux", "win32", "darwin"] - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] fail-fast: false steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - run: curl -LsSf https://astral.sh/uv/install.sh | sh - run: uv pip install -r requirements-tests.txt --system - name: Install required APT packages