actions / actions/starter-workflows

# This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation.😕 Question: why bump python version and not action version? Is there a reason?

Open
#2,799 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.1k
Forks
7.3k
PR merge metrics
No merged PRs in 30d

Description

          😕 Question: why bump python version and not action version? Is there a reason?

Please see setup-python action releases Note the changes for version v5 includes migrating the underlying node version (which fixes a deprecated version just like the 3.8 to 3.13 does).

I recommend something like this:

        uses: actions/setup-python@v5
        with:
          python-version: "3.13"  # set this to the python version to use (see https://github.com/actions/setup-python?tab=readme-ov-file#basic-usage)

[!CAUTION]
Also please note that python-versions after 3.10 and non-cpython need quoting to properly function in some GitHub Action Runner Environments (in contrast with 3.8 which did not need quotes); compare with the format used in ci/pylint.yml where quotes are used.

Benefits of these changes:
  • Syntacticly Correct: Uses quotes around python-version correctly.
  • Consistency in Comments: Helps keep comments consistent with other changes in this PR.
  • Improved Security: Both the original version bump to 3.13 and the setup-python version bump to v5 are important for remaining current with security updates.

Originally posted by @reactive-firewall in https://github.com/actions/starter-workflows/pull/2584#discussion_r1835009893

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the workflow context and the referenced ci/pylint.yml, then compare the current setup-python usage with the v5 release notes. Done means the relevant workflow uses the intended action and Python versions, quotes versions consistently, and its checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python
Domain
ci-cd, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.