-
Notifications
You must be signed in to change notification settings - Fork 13
Use uv to set up python version in tests #574
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
Conversation
| uv pip install --upgrade '.[test,docs]' | ||
| uv pip list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that's interesting. I didn't realize that if you setup Python with uv that it knows how to automatically activate the default virtual environment it creates.
That's good to know, so thanks @ponyisi!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, @ponyisi do you want to also apply these changes to all the other GitHub Action workflows?
ServiceX_frontend/.github/workflows/ci_production.yaml
Lines 30 to 36 in 8288202
- name: Install uv uses: astral-sh/setup-uv@v5 - name: Install package run: | uv pip install --system --upgrade '.[test]' uv pip list --system ServiceX_frontend/.github/workflows/docs.yml
Lines 32 to 38 in 8288202
- name: Install uv uses: astral-sh/setup-uv@v5 - name: Install Python dependencies run: | uv pip install --system --upgrade ".[docs]" uv pip list --system ServiceX_frontend/.github/workflows/pypi.yaml
Lines 25 to 31 in 8288202
- name: Install uv uses: astral-sh/setup-uv@v5 - name: Install python-build and twine run: | uv pip install --system build twine uv pip list --system
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
* Add free-thread Python 3.13 and preview Python 3.14 to test matrix * Setup python with uv? * No system uv
There is a conflict in setting up Python versions with 3.13t if we use both the setup-python and setup-uv actions. Do only the latter. (This PR does not itself bring in 3.13t, that has conflicts with dependencies, specifically aiohttp aio-libs/aiohttp#10467 .)