Skip to content

Commit

Permalink
ci: upgrade setup-python (#4040)
Browse files Browse the repository at this point in the history
python-version is recommended to speficy.

https://github.com/actions/setup-python?tab=readme-ov-file#basic-usage
> The default version of Python or PyPy in PATH varies between runners
> and can be changed unexpectedly so we recommend always setting Python
> version explicitly using the python-version or python-version-file
> inputs.

In fact, Dependabot's PR #4001 was failing due to that.
  • Loading branch information
kzys authored Oct 28, 2024
1 parent e2b1fca commit 7eb10f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
check-latest: true
# pre-commit runs "pip install" which doesn't work under Debian's apt-instaled Python.
# https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files --hook-stage=manual
Expand Down

0 comments on commit 7eb10f8

Please sign in to comment.