Skip to content

Update GitHub Actions to Latest Versions - #717

Open
xingarr wants to merge 1 commit into
realpython:masterfrom
xingarr:fix/update-github-actions-versions
Open

xingarr wants to merge 1 commit into
realpython:masterfrom
xingarr:fix/update-github-actions-versions

Conversation

@xingarr

@xingarr xingarr commented Nov 4, 2025

Copy link
Copy Markdown

Description

This PR updates the deprecated GitHub Actions in the linters workflow to their latest stable versions.

Changes Made

  • actions/checkout: v2 → v4
  • actions/setup-python: v2 → v5
  • actions/cache: v3 → v4

Why This Matters

  1. Security: Newer versions include important security patches
  2. Performance: Improved caching and checkout performance
  3. Compatibility: Ensures compatibility with GitHub's latest runner environments
  4. Maintenance: Removes deprecation warnings from workflow runs

Testing

  • ✅ Workflow syntax validated
  • ✅ No breaking changes in functionality
  • ✅ All existing features preserved

References

- Upgrade actions/checkout from v2 to v4
- Upgrade actions/setup-python from v2 to v5
- Upgrade actions/cache from v3 to v4

These updates address deprecation warnings and include security
improvements, better performance, and bug fixes from the latest
Action versions. The workflow functionality remains unchanged.

Fixes potential security vulnerabilities and ensures compatibility
with GitHub's latest runner environments.
bzaczynski pushed a commit that referenced this pull request Nov 10, 2026
The cached ./venv links to the interpreter it was built with. Since #917
resolves '3.14' to the latest patch, a new patch release (3.14.9 to
3.14.10) leaves the cached venv pointing at a missing interpreter, and
the cache hit skips the install, so 'python -m ruff' runs without Ruff.

Include setup-python's resolved python-version in the cache key, so each
patch release builds a fresh venv, and update checkout, setup-python, and
cache to their current major versions (as proposed in #717).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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