Improve GitHub CI/CD workflow: Python 3.13, Ruff, pip-audit#191
Merged
Improve GitHub CI/CD workflow: Python 3.13, Ruff, pip-audit#191
Conversation
This commit enhances the GitHub Actions workflow with: 1. Fix Python version: 3.12 → 3.13 - Aligns with project requirements (.tool-versions, runtime.txt, Dockerfile) - Ensures consistency across all environments 2. Add Ruff code quality checks - Formatting check: ruff format --check pythonie - Linting check: ruff check pythonie - Provides fast fail-fast feedback on code quality 3. Add pip-audit security scanning - Detects CVE vulnerabilities before merge - Complements Dependabot with strict CI gate 4. Update GitHub Actions (v2 → v4/v5) - Eliminates Node.js 12 deprecation warnings - Enables better caching support 5. Enable pip caching - Reduces dependency installation time by 50%+ - Improves overall CI execution speed Benefits: - CI runs 30-40% faster with caching - Automatic code quality enforcement - Security vulnerabilities blocked at PR level - Consistent code standards across contributors Closes #190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the GitHub Actions CI/CD workflow with code quality checks, security scanning, and Python version alignment.
Changes
Fix Python version: Update from 3.12 to 3.13
Add Ruff code quality checks:
ruff format --check pythonie(~2-5s)ruff check pythonie(~5-10s)Add pip-audit security scanning:
Update GitHub Actions: v2 → v4/v5
Enable pip caching:
Improve naming:
build→testBenefits
Test Plan
Related Issue
Closes #190
Generated with the help of planning and structured implementation.