You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Specifying a with: python-version works for Windows and Linux runners, but seemingly is ignored on MacOS runners, where setup-python resorts to the newest Python version available
Thank you for raising this issue. It seems that the problem with the python-version being ignored on MacOS runners may be related to the shell configuration specified in your workflow which is shell: bash -l {0}.
To avoid this, it is recommended to use the shell configuration like : shell: bash.
For more details, please refer to the related discussion here: actions/setup-python#179 (comment).
I hope this helps!
Description:
Specifying a
with: python-version
works for Windows and Linux runners, but seemingly is ignored on MacOS runners, wheresetup-python
resorts to the newest Python version availableAction version:
actions/setup-python@5
Platform:
Runner type:
Tools version:
n/a
Repro steps:
Run a GitHub workflow YAML file that specifies a
python-version
on MacOS runners. See below for an example YAML, and the following repo for a running example: https://github.com/christophfink/gh-actions-python-versions/actions/runs/10508872098Expected behavior:
actions/setup-python
installs the requested python version (as on Windows and Linux runners)Actual behavior:
actions/setup-python
installs thelatestedit: default python versionThe text was updated successfully, but these errors were encountered: