Skip to content

fix(release): decouple publish-pypi from runner's system Python - #1700

Merged
mxsrc merged 1 commit into
mainfrom
fix/release-ci-decouple-python-runner
Nov 20, 2026
Merged

mxsrc merged 1 commit into
mainfrom
fix/release-ci-decouple-python-runner

Conversation

@mxsrc

@mxsrc mxsrc commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • publish-pypi used actions/setup-python@v3 pinned to Python 3.9 on ubuntu-latest. GitHub's ubuntu-latest moved to 26.04, which has no published 3.9 build, so the job failed (hit during the 26.3.4 release — PyPI publish failed while publish-image succeeded independently).
  • Replace setup-python + pip install uv tox tox-uv with astral-sh/setup-uv@v5 + uv tool install tox --with tox-uv. uv provisions its own interpreters from python-build-standalone, independent of the runner OS, so this doesn't break again the next time a runner image drops an old Python build.

Test plan

  • Confirmed astral-sh/setup-uv@v5's bundled source calls core.addPath("$HOME/.local/bin") unconditionally, so the tox binary installed via uv tool install is on PATH for later steps (verified against the pinned v5 tag's dist/setup/index.js, not just the main branch).
  • Confirm with a live release run (e.g. a prerelease tag) that publish-pypi completes end to end.

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-actions github-actions Bot added the target/main Targets the development branch label Nov 20, 2026
@mxsrc
mxsrc requested a review from boddumanohar November 20, 2026 13:47
@mxsrc
mxsrc marked this pull request as ready for review November 20, 2026 13:47
@mxsrc
mxsrc requested a review from Hamdy-khader November 20, 2026 13:47
@mxsrc
mxsrc merged commit 5c80041 into main Nov 20, 2026
21 checks passed
@mxsrc
mxsrc deleted the fix/release-ci-decouple-python-runner branch November 20, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/main Targets the development branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants