Skip to content

Commit

Permalink
use python 3.11 to run pre-commit on the ci
Browse files Browse the repository at this point in the history
actions/setup-python seems to always use the newest python version by
default. This broke the ci since apparently pre-commit is not compatible
with python 3.12. Fixed by forcing it to run with python 3.11
  • Loading branch information
lievenhey committed Oct 30, 2023
1 parent cdc66a4 commit 3656d29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11.x
- uses: pre-commit/action@v3.0.0

0 comments on commit 3656d29

Please sign in to comment.