From 8f5592c51f379ce30bdc8b4085a7d381dfb1e8bd Mon Sep 17 00:00:00 2001 From: im47cn-bot Date: Tue, 3 Nov 2026 10:04:54 +0800 Subject: [PATCH] =?UTF-8?q?ci:=203.9=20=E9=92=89=20ubuntu-24.04=EF=BC=8826?= =?UTF-8?q?.04=20=E6=97=A0=203.9=20=E6=9E=84=E5=BB=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ubuntu-latest 已升 26.04,而 actions/python-versions 最新 3.9.25 只构建到 24.04(3.9 于 2025-10 EOL),setup-python 直接报 version not found,两个 job 在装解释器阶段即失败,从未跑到测试。 test 矩阵的 3.9 与 oldest-deps 均钉 ubuntu-24.04,其余 Python 版本仍走 ubuntu-latest;下界提升到 >=3.10 时整块删除。 失败 run: 41432215926 / 41392461949 / 41272108184(issue #48) --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e683779..8eaed41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,12 +20,21 @@ jobs: # 轴 1:Python 解释器矩阵(3.9 = 声明下界(spec §3 契约);3.14 = 当前最新稳定),依赖取最新 # 轴 2:OS 矩阵(ubuntu x86_64 + macOS arm64)——cryptography/gmssl 走各平台轮子, # 双 OS 钉住平台相关行为漂移(interop 消费与 OS 矩阵同基线,跨仓拉齐要求) + # 例外:ubuntu-latest 已升 26.04,而 actions/python-versions 不再为 26.04 构建 3.9(3.9 于 2025-10 + # EOL,最新构建只到 24.04),setup-python 直接报 "version not found"。故 3.9 钉 ubuntu-24.04, + # 其余版本仍走 ubuntu-latest。下界提升到 ≥3.10 时可整块删除。 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + include: + - os: ubuntu-24.04 + python-version: "3.9" + exclude: + - os: ubuntu-latest + python-version: "3.9" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -49,7 +58,8 @@ jobs: # (“声明即 tested”)。--no-deps 防 pip 把 pin 抬回最新造成假绿。 # cryptography/gmssl 被全部 214 个用例真实执行(协议核心走真库); # httpx/requests 适配器测试走 fake 模块注入,此处 pin 验证 extras 可解析安装。 - runs-on: ubuntu-latest + # 与 test 矩阵 3.9 同因钉 24.04(26.04 无 3.9 构建);下界提升后改回 ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5