Skip to content

Manage the CI Python interpreter with uv - #393

Merged
tpvasconcelos merged 2 commits into
mainfrom
219-uv-managed-python-pr
Jul 25, 2026
Merged

Manage the CI Python interpreter with uv#393
tpvasconcelos merged 2 commits into
mainfrom
219-uv-managed-python-pr

Conversation

@tpvasconcelos

@tpvasconcelos tpvasconcelos commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Description

Let uv fully manage the Python interpreter in CI, as part of the uv adoption tracked in #219. The setup-python composite action now uses astral-sh/setup-uv's python-version and activate-environment inputs and drops actions/setup-python entirely:

  • The requested Python version is installed as a uv-managed interpreter (python-build-standalone builds) instead of GitHub's toolcache CPython.
  • setup-uv creates and activates a virtual environment used by all subsequent steps, so the requirements install step targets it directly (dropping --system). Tox then uses the venv's interpreter as its host Python, so the test matrix versions are honored exactly as before.

Note: this change previously ran on main as eed5995 (accidental direct push, since reverted in a70141e so it could be reviewed here). All workflows passed on that commit, including the full 3.10-3.14 test matrix, the release workflow's dist build, and the docs build - so the change is already CI-validated end-to-end.

Related issues

Related to #219.

PR check list

  • Read the contributing guidelines.
  • Provided the relevant details in the PR's description.
  • Referenced relevant issues in the PR's description.
  • Added tests for all my changes. (N/A - CI config only; validated by the CI runs on this PR)
  • Updated the docs for relevant changes. (N/A)
  • Changes are documented in docs/reference/changelog.md.
  • The CI check are all passing, or I'm working on fixing them!
  • I have reviewed my own code! 🤠

📚 Documentation preview 📚: https://ridgeplot--393.org.readthedocs.build/en/393/

@github-actions

This comment has been minimized.

@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a70141e) to head (c2c4ca7).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #393   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          674       674           
  Branches        88        88           
=========================================
  Hits           674       674           
Flag Coverage Δ
combined-src 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tpvasconcelos
tpvasconcelos merged commit a0ed92c into main Jul 25, 2026
18 of 20 checks passed
@tpvasconcelos
tpvasconcelos deleted the 219-uv-managed-python-pr branch July 25, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant