Pin distribution for pre-commit CI job

The GH action `pre-commit/action` installs `pre-commit` into the system
with `pip`.[^1] On newer distributions this is discouraged as it might break
system packages and would require a dedicated flag
`--break-system-packages` in order to pass.

Since the action does not work in such environments yet, instead pin the
distribution we use for the workflow to a fixed, older and working version.

[^1]: 576ff52938/action.yml (L11)
This commit is contained in:
Benjamin Bannier 2024-10-15 10:25:18 +02:00
parent 391fb4de07
commit d9072c0932

View file

@ -7,7 +7,7 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4