Skip to content

python-version is ignored on MacOS runners #929

Description

@christophfink

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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

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

Screenshot 2024-08-22 at 15 10 49

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions