Skip to content

Commit

Permalink
ci: upgrade setup-python
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 committed Oct 28, 2024
1 parent e2b1fca commit c3395cf
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/[email protected]
with:
extra_args: --all-files --hook-stage=manual
Expand Down

0 comments on commit c3395cf

Please sign in to comment.