Skip to content

build: move workflows off retired ubuntu-20.04 runner - #117

Merged
Gregpeinke merged 1 commit into
mainfrom
gpeinke/fix-gha-runners
Oct 8, 2026
Merged

Gregpeinke merged 1 commit into
mainfrom
gpeinke/fix-gha-runners

Conversation

@Gregpeinke

Copy link
Copy Markdown
Contributor

GitHub retired the ubuntu-20.04 runner image. Jobs that ask for it wait in the queue and never start, so:

Changes

  • ci.yml and pypi-publish.yml: runs-on: ubuntu-latest, actions/checkout@v7, actions/setup-python@v7.
  • pypi-publish.yml: adds a pull_request trigger for PRs that touch the workflow or packaging files (setup.py, setup.cfg, MANIFEST.in, requirements/pip.txt). On PRs the job checks out, installs and builds the sdist/wheel. The PyPI upload step has if: startsWith(github.ref, 'refs/tags/'), so it only runs for tag pushes.

Testing

This PR's own checks test the change:

  • The CI jobs (tests, quality, docs) run on ubuntu-latest against main's code plus this diff, which includes chore: updates for openflow migration #115.
  • "Publish package to PyPI" builds the package without uploading.

The PyPI upload step itself can't be run without publishing. Apart from the if: condition it's unchanged, and it's a container action, so it doesn't depend on the runner version.

Releasing 0.6.0 after merge

Tag-triggered runs use the workflow file at the tagged commit, so re-running the stuck v0.6.0 run would still request ubuntu-20.04. Since nothing was published under 0.6.0, move the tag to this PR's merge commit:

git push origin :refs/tags/v0.6.0
git tag -f v0.6.0 <merge-sha> && git push origin v0.6.0

Deleting the tag turns the v0.6.0 GitHub Release into a draft, so it will need to be published again.

🤖 Generated with Claude Code

@Gregpeinke
Gregpeinke requested a review from a team as a code owner October 8, 2026 13:14
GitHub retired the ubuntu-20.04 runner image, so CI and PyPI publish
jobs sit in the queue and never start. Move them to ubuntu-latest and
update checkout and setup-python to v7.

Also build the package on PRs that touch packaging, with the PyPI
upload limited to tag pushes, so publish changes can be tested before
a release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gregpeinke
Gregpeinke force-pushed the gpeinke/fix-gha-runners branch from 870fd2f to 84b117f Compare October 8, 2026 13:16
@Gregpeinke Gregpeinke changed the title ci: move workflows off retired ubuntu-20.04 runner build: move workflows off retired ubuntu-20.04 runner Oct 8, 2026
@Gregpeinke
Gregpeinke merged commit 72ee781 into main Oct 8, 2026
5 checks passed
@Gregpeinke
Gregpeinke deleted the gpeinke/fix-gha-runners branch October 8, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants