Skip to content

Commit

Permalink
chore: Ensure pre-commit gets non-system Python
Browse files Browse the repository at this point in the history
This is needed with the ubuntu-24.04 images so that `setup-python` will
install a version of Python that the pre-commit action can install into.

See pre-commit/action#210 for more of an analysis of this.
  • Loading branch information
epage authored and SRv6d committed Sep 29, 2024
1 parent d92f1a6 commit 81bf5b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: pre-commit/action@v3.0.1

0 comments on commit 81bf5b8

Please sign in to comment.