Skip to content

Commit cb8baed

Browse files
committed
CI: use check-latest instead of tilde-range for Windows setup-python
~3.12.16 resolves correctly on Linux but fails on Windows because the Windows python-versions manifest lags behind Linux when a security batch ships. Switch build-wheel (cibuildwheel host) and test-sdist-windows to check-latest: true with the minor-only spec so they resolve the newest available patch on any OS, consistent with the matrix setup-python steps.
1 parent 0e852e6 commit cb8baed

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/build-wheel.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ jobs:
109109
with:
110110
# WAR: setup-python is not relocatable, and cibuildwheel hard-wires to 3.12...
111111
# see https://github.com/actions/setup-python/issues/871
112-
python-version: "~3.12.16" # floor: first 3.12 with eMudhra ssl fix (CVE-2026-115557)
112+
python-version: "3.12"
113+
# Resolve newest patch from manifest (not stale tool cache); tilde-range
114+
# (~3.12.16) is not used because the Windows manifest may lag behind Linux.
115+
check-latest: true
113116
architecture: ${{ ((inputs.host-platform == 'linux-aarch64' || inputs.host-platform == 'win-arm64') && 'arm64') || 'x64' }}
114117

115118
- name: Harden pip

‎.github/workflows/test-sdist-windows.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ jobs:
5858
- name: Set up Python
5959
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
6060
with:
61-
python-version: "~3.12.16" # floor: first 3.12 with eMudhra ssl fix (CVE-2026-115557)
61+
python-version: "3.12"
62+
# Resolve newest patch from manifest (not stale tool cache); tilde-range
63+
# (~3.12.16) is not used because the Windows manifest may lag behind Linux.
64+
check-latest: true
6265

6366
- name: Harden pip
6467
uses: ./.github/actions/harden-pip

0 commit comments

Comments
 (0)