Skip to content

Bump actions/setup-python from v5.6.0 to v6.2.0 (Node 20 → Node 24) - #408

Merged
webknjaz merged 1 commit into
pypa:unstable/v1from
adisivaprasad:bump-setup-python-v6
May 21, 2026
Merged

Bump actions/setup-python from v5.6.0 to v6.2.0 (Node 20 → Node 24)#408
webknjaz merged 1 commit into
pypa:unstable/v1from
adisivaprasad:bump-setup-python-v6

Conversation

@adisivaprasad

@adisivaprasad adisivaprasad commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GitHub now emits a Node 20 deprecation warning when this action runs, because action.yml pins actions/setup-python@v5.6.0, which uses the Node 20 runtime.
  • setup-python v6.0.0 upgraded the action's runtime to Node 24. Bumping to the latest pin v6.2.0 (commit a309ff8) removes the warning.
  • This is the only Node-based action in the user-facing code path. The other uses: reference in action.yml is the dynamically-generated Docker container action, which is unaffected. Other actions/checkout references live only in .github/workflows/ (this repo's own CI) and are not part of the consumed action.

Why the warning surfaces even though the step is skipped

The Install Python 3 step has if: steps.pre-installed-python.outputs.python-path == '', so it's typically skipped on GitHub-hosted runners (Python is pre-installed). However, the runner still resolves every uses: reference at workflow start, which is when the Node 20 deprecation warning is emitted — so the warning shows up for consumers regardless. Bumping the pin fixes that.

Compatibility note

Per the upstream v6.0.0 release notes, setup-python@v6 requires GitHub Actions runner v2.327.1 or later. GitHub-hosted runners are well past this; self-hosted runner users should verify.

The v5.x line runs on Node 20, which now emits a deprecation warning
in workflow logs. v6.0.0 upgraded the action's runtime to Node 24.

Note: setup-python v6+ requires GitHub Actions runner v2.327.1 or
later (per upstream release notes).

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@webknjaz
webknjaz enabled auto-merge May 21, 2026 20:57
@webknjaz
webknjaz merged commit ba38be9 into pypa:unstable/v1 May 21, 2026
10 checks passed
@jylenhof

jylenhof commented Jul 9, 2026

Copy link
Copy Markdown

It would be nice if a stable version with this commit could be released... Github has pushed the requirement to nodejs 24 since the beginning of june !

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.

3 participants