From edd7544b5ccd1ff25f688c3b634018ffb9a75ff3 Mon Sep 17 00:00:00 2001 From: Max Schettler Date: Fri, 20 Nov 2026 14:39:44 +0100 Subject: [PATCH] fix(release): decouple publish-pypi from runner's system Python actions/setup-python needs a prebuilt (version, runner-OS) interpreter from GitHub's manifest; ubuntu-latest moving to 26.04 dropped the 3.9 build, breaking the 26.3.4 release's PyPI publish job. uv fetches its own interpreters independent of the runner OS, so use it instead. --- .github/workflows/release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfe62dcb58..67db981097 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,13 +70,18 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.9' + # actions/setup-python requires a prebuilt interpreter for the exact + # (python-version, runner-OS) pair from GitHub's manifest; those get + # dropped once a runner image ages out (e.g. no 3.9 build for + # ubuntu-latest once it moved to 26.04 -- see the 26.3.4 release + # failure). uv provisions its own interpreters from + # python-build-standalone, independent of the runner OS, so pin uv + # instead of a Python version here. + - name: Install uv + uses: astral-sh/setup-uv@v5 - name: Install build tooling - run: pip install uv tox tox-uv + run: uv tool install tox --with tox-uv - name: Checking cli.py status run: |