Skip to content

chore(deps): bump actions/setup-python from 6.3.0 to 7.0.0 - #70

Merged
oWretch merged 2 commits into
mainfrom
dependabot/github_actions/actions/setup-python-7.0.0
Jul 27, 2026
Merged

chore(deps): bump actions/setup-python from 6.3.0 to 7.0.0#70
oWretch merged 2 commits into
mainfrom
dependabot/github_actions/actions/setup-python-7.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 25, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/setup-python from 6.3.0 to 7.0.0.

Release notes

Sourced from actions/setup-python's releases.

v7.0.0

What's Changed

Enhancements

Bug Fix

Dependency Upgrade

New Contributors

Full Changelog: actions/setup-python@v6...v7.0.0

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 25, 2026
@dependabot
dependabot Bot requested a review from oWretch as a code owner July 25, 2026 22:22
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 25, 2026
@oWretch

oWretch commented Jul 27, 2026

Copy link
Copy Markdown
Owner

@copilot Can you please review what has changed between the 6.3.0 and 7.0.0 releases of actions/setup-python and what impact upgrading might have on this repository. Include suggestions of what changes would need to be made, or new functionality that should be utilised with the new release.

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.3.0 to 7.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@ece7cb0...5fda3b9)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/github_actions/actions/setup-python-7.0.0 branch from d7f409c to 7568ad4 Compare July 27, 2026 04:47

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@copilot Can you please review what has changed between the 6.3.0 and 7.0.0 releases of actions/setup-python and what impact upgrading might have on this repository. Include suggestions of what chan...

Here's the analysis of changes between actions/setup-python 6.3.0 → 7.0.0 and their impact on this repository.


Breaking Change

pip-install input removed (#1336)

The pip-install input (which allowed specifying packages to install with pip as part of the action) has been removed. This does not affect this repository — the pre-commit job does not use that input; it installs pre-commit via a separate pip install pre-commit step, which remains unaffected.


Other Changes

Category Change
ESM migration Action migrated to ESM + dependency upgrades (#1330)
Bug fix stderr warnings are now annotated as warnings instead of errors (#1335)
Bug fix Manifest fetch now validates and retries to prevent silent failures (#1332)
Dependency @actions/cache upgraded to 6.2.0 (#1337)
Runtime Still using node24 — no runner changes needed

Current Usage in This Repository

The pre-commit job in .github/workflows/ci.yml uses the action without any inputs:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0

The upgrade itself is fully compatible — no changes are required.


Suggestions for New Functionality

Two inputs available in v7.0.0 (and prior) that aren't currently used, but would improve the workflow:

  1. Pin Python version — Currently, the workflow uses whatever Python version is on the runner, which can vary across runner image updates. Adding an explicit version prevents silent surprises:

    - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
      with:
        python-version: '3.x'

    Alternatively, a .python-version file in the repo root would be picked up automatically.

  2. Enable pip caching — The cache: 'pip' input would cache the pip package cache between runs, speeding up the pip install pre-commit step:

    - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
      with:
        python-version: '3.x'
        cache: 'pip'

    This requires a requirements.txt (or similar) to act as the cache key. Since only pre-commit is installed, a minimal requirements.txt with pre-commit could be added to the repo root, or the cache-dependency-path input could be set to .pre-commit-config.yaml.

Would you like me to apply either or both of these improvements to the workflow?

@oWretch

oWretch commented Jul 27, 2026

Copy link
Copy Markdown
Owner

@copilot Yes please apply both of those improvements

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@copilot Yes please apply both of those improvements

Done in the latest commit. The setup-python step in the pre-commit job now has:

- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
  with:
    python-version: '3.x'
    cache: 'pip'
    cache-dependency-path: .pre-commit-config.yaml

.pre-commit-config.yaml is used as the cache key file — any change to that file (e.g. hook version bumps) will invalidate the pip cache automatically.

@oWretch
oWretch merged commit 0f9f386 into main Jul 27, 2026
7 checks passed
@dependabot
dependabot Bot deleted the dependabot/github_actions/actions/setup-python-7.0.0 branch July 27, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants