◐ Shell
clean mode source ↗

Update GitHub Actions to Latest Versions by xingarr · Pull Request #717 · realpython/materials

Conversation

@xingarr

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.

1 participant

@xingarr