Skip to content

ci: move the GitHub Actions to their Node 24 majors - #131

Merged
carluri merged 3 commits into
mainfrom
chore/actions-node24
Nov 14, 2026
Merged

carluri merged 3 commits into
mainfrom
chore/actions-node24

Conversation

@carluri

@carluri carluri commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

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: node24 in its own action.yml:

Action Was Now
actions/checkout v4 v7
actions/setup-python v5 v7
actions/upload-artifact v4 v7
actions/download-artifact v4 v8

ci.yml and no-medical-images.yml carried the same stale pins, so all
three 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@v8 now fails on a digest mismatch
instead of warning, and upload-artifact@v7 gained direct unzipped
uploads, which we do not use. setup-python@v7 dropped its
pip-install input, which we never set.

Left alone deliberately

The ubuntu-latest migration notice is not addressed. Pinning to
ubuntu-24.04 would silence it, but the build produces a
py3-none-any universal wheel, so the runner OS has no bearing on the
output 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 checkout and setup-python bumps.
The artifact actions are first exercised by the next release run.

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.
@carluri
carluri merged commit 1ad6d8f into main Nov 14, 2026
7 checks passed
@carluri
carluri deleted the chore/actions-node24 branch November 14, 2026 22:43
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.

1 participant