From 11a0359b23c3e97d2b44dfb704b995a36b2fec63 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 29 Nov 2026 20:21:55 +0000 Subject: [PATCH 1/2] Remove 3.10 from third-party test matrix; add 3.14 and 3.15 where possible --- .github/workflows/third_party.yml | 43 ++++++++++++++++--------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 37a76ba9..35c9f5f7 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -3,6 +3,10 @@ # This helps us spot regressions early, # and helps flag when third-party libraries are making incorrect assumptions # that might cause them to break when we cut a new release. +# +# Note that we don't run PyPy tests for any third-party library currently, +# even though several run their tests on PyPY in their own CI. We used to, +# but they proved too flaky: #321, #351, #463 name: Third-party tests @@ -20,7 +24,8 @@ permissions: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 - FORCE_COLOR: 1 + # various tests fail on third-party libraries if color is enabled :( + PYTHON_COLORS: 0 concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -44,11 +49,7 @@ jobs: strategy: fail-fast: false matrix: - # PyPy is deliberately omitted here, - # since pydantic's tests intermittently segfault on PyPy, - # and it's nothing to do with typing_extensions - # Tests on 3.14 don't pass as of 2 November 2025 - python-version: ["3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -86,7 +87,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -126,7 +127,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + # as of 2026-11-29, one test fails on Python 3.15 + python-version: ["3.11", "3.12", "3.13", "3.14"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -166,7 +168,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -187,8 +189,6 @@ jobs: - name: Remove uv version requirement run: uv run --no-project --python '>=3.11' typing-extensions-latest/scripts/remove_uv_version_requirement.py typeguard - name: Run tests with typing_extensions main branch - env: - PYTHON_COLORS: 0 # A test fails if tracebacks are colorized working-directory: typeguard run: | set -x @@ -208,8 +208,7 @@ jobs: strategy: fail-fast: false matrix: - # 3.9 is no longer supported. 3.14 fails some tests as of 2 November 2025 - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -256,8 +255,7 @@ jobs: strategy: fail-fast: false matrix: - # 3.14 fails a test as of 2 November 2025 - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -267,6 +265,12 @@ jobs: # renovate: datasource=github-release-attachments depName=astral-sh/uv version: "0.13.6" checksum: "f29c3e94ffabd7e6f3ba521dba169a9b7ec12100bf3257087f0f24f6123f3645" + # We can't just rely on uv's Python here: Python-Build-Standalone builds do not + # include the stdlib's `test` module, and mypyc's tests import `test.support` on + # Python 3.14+ + - name: Set up Python + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 + with: python-version: ${{ matrix.python-version }} - name: Checkout mypy for stubtest and mypyc tests run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git @@ -298,7 +302,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -336,9 +340,7 @@ jobs: strategy: fail-fast: false matrix: - # PyPy is deliberately omitted here, since SQLAlchemy's tests - # fail on PyPy for reasons unrelated to typing_extensions. - python-version: [ "3.11", "3.12", "3.13", "3.14" ] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] checkout-ref: [ "main", "rel_2_0" ] # sqlalchemy tests fail when using the Ubuntu 24.04 runner # https://github.com/sqlalchemy/sqlalchemy/commit/8d73205f352e68c6603e90494494ef21027ec68f @@ -379,8 +381,7 @@ jobs: strategy: fail-fast: false matrix: - # As of 2 November 2025 a dependency is missing 3.14 wheels - python-version: [ "3.11", "3.12", "3.13" ] + python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] steps: - name: Install uv uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 From 4f55b3e1f54aeba6d2020f6b741e5b2061c6e46b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 30 Nov 2026 13:49:16 +0000 Subject: [PATCH 2/2] Update comment on Python 3.15 test failures --- .github/workflows/third_party.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 77c86ebc..ef2982ef 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -127,7 +127,7 @@ jobs: strategy: fail-fast: false matrix: - # as of 2026-11-29, one test fails on Python 3.15 + # as of 2026-11-29, several tests fail on Python 3.15 python-version: ["3.11", "3.12", "3.13", "3.14"] runs-on: ubuntu-latest timeout-minutes: 60