chore: Ensure pre-commit gets non-system Python

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.
This commit is contained in:
Ed Page 2024-09-26 20:59:12 -05:00
parent 68d2027407
commit 6e193aa09a

View file

@ -24,4 +24,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: pre-commit/action@v3.0.1 - uses: pre-commit/action@v3.0.1