Skip to content

Commit

Permalink
[CI/Build] Only run the ruff job with one Python version
Browse files Browse the repository at this point in the history
Ruff itself is not a Python tool, so running it in 5 different Python
environments doesn't provide much value, other than ensuring
`requirements-lint.txt` can be installed in all of these versions.
That doesn't seem like enough value to run 5 copies of the job all the
time.

Coverage using different Python versions makes more sense for jobs
that are actually running the code.

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Nov 1, 2024
1 parent 18fc405 commit 8dbb595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 8dbb595

Please sign in to comment.