-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup-uv doesn't use latest Python 3.9 on macos #212
Comments
The rootcause is that uv searches for python executables that satisfy the requested version requirements before downloading a version. On macos there is 3.9.6 under I'm currently not sure what the best fix for that is. We could enforce downloading the latest version but by that would remove the capability to use system managed versions which e.g. get installed by |
Would - name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.9
python-preference: "only-managed" |
A good solution is to add the - name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.9
use-latest-python: true |
But the fact is that the current behavior of I think |
The following config installs Python 3.9.6 instead of Python 3.9.13.
actions/setup-python
uses Python 3.9.13 on macos-latest, whilesetup-uv
uses Python 3.9.6.Proof
My test failed because of this version problem:
Failed test using
setup-uv
uses Python 3.9.6.Successful test using
actions/setup-python
uses 3.9.13.The text was updated successfully, but these errors were encountered: