Repository navigation
ci: move the GitHub Actions to their Node 24 majors - #131
Merged
Merged
Conversation
Every run was warning that checkout, setup-python, upload-artifact and download-artifact still target Node.js 20, which the runners now force onto Node 24 and will stop supporting. The pins move to the current majors, each of which declares `using: node24`: actions/checkout v4 -> v7 actions/setup-python v5 -> v7 actions/upload-artifact v4 -> v7 actions/download-artifact v4 -> v8 Nothing we pass to them changed. The only behavioural differences that reach us are improvements: download-artifact now fails on a digest mismatch rather than warning, and upload-artifact gained direct unzipped uploads, which we do not use. All three workflows carried the same stale pins, so all three move together rather than leaving CI warning on every push.
The section was still headed "unreleased". That text ships in the wheel metadata and renders on the published changelog page, so it needs a real date before the release is cut.
A PR run took around eight minutes of wall clock. The five matrix jobs run in parallel, so the count was never the cost; the slowest job was, and two thirds of it was dependency installation with no cache at all. Three changes: Dependency caching. setup-python now caches the pip downloads. There is no requirements.txt in this repository, so cache-dependency-path has to point at pyproject.toml explicitly or the action fails looking for one. Lint moves into its own job. Black, isort, flake8 and pydocstyle give the same answer on every interpreter, so running the hooks five times bought nothing. They now run once on 3.12, and the hook environments are cached too: the pytest-smoke hook builds a virtualenv with numpy, SimpleITK and scikit-image in it, which was most of that step's time. Superseded runs are cancelled. A fixup push used to leave six jobs grinding away on code nobody would merge. The test matrix keeps all five interpreters. The package declares support for 3.10 through 3.14, they cost no wall clock running in parallel, and they are free on a public repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The TestPyPI rehearsal of 0.3.0 succeeded, but it raised a Node.js 20
deprecation warning on both jobs. The runners are already forcing these
actions onto Node 24 and will stop doing so.
The bumps
All four actions move to the current major, each of which declares
using: node24in its ownaction.yml:actions/checkoutactions/setup-pythonactions/upload-artifactactions/download-artifactci.ymlandno-medical-images.ymlcarried the same stale pins, so allthree workflows move together rather than leaving CI warning on every
push.
Nothing we pass to these actions changed. Reading the release notes for
the intervening majors, the only behavioural differences that reach us
are improvements:
download-artifact@v8now fails on a digest mismatchinstead of warning, and
upload-artifact@v7gained direct unzippeduploads, which we do not use.
setup-python@v7dropped itspip-installinput, which we never set.Left alone deliberately
The
ubuntu-latestmigration notice is not addressed. Pinning toubuntu-24.04would silence it, but the build produces apy3-none-anyuniversal wheel, so the runner OS has no bearing on theoutput and the pin would only need bumping again later.
Also here
A second commit dates the 0.3.0 changelog section, which still read
"unreleased". That string ships in the wheel metadata and renders on the
published changelog page, so it has to be real before the release is
cut.
Checks
The release workflow itself only runs on a published release or a manual
dispatch, so CI here exercises the
checkoutandsetup-pythonbumps.The artifact actions are first exercised by the next release run.