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
Action 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/10508872098
Expected behavior:
actions/setup-python installs the requested python version (as on Windows and Linux runners)
Actual behavior:
actions/setup-python installs the latest edit: default python version

Description:
Specifying a
with: python-versionworks for Windows and Linux runners, but seemingly is ignored on MacOS runners, wheresetup-pythonresorts 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-versionon 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-pythoninstalls the requested python version (as on Windows and Linux runners)Actual behavior:
actions/setup-pythoninstalls thelatestedit: default python version