Skip to content

Use astral-sh/setup-uv in the setup-python composite action#386

Merged
tpvasconcelos merged 4 commits into
mainfrom
219-setup-uv-action
Jul 25, 2026
Merged

Use astral-sh/setup-uv in the setup-python composite action#386
tpvasconcelos merged 4 commits into
mainfrom
219-setup-uv-action

Conversation

@tpvasconcelos

@tpvasconcelos tpvasconcelos commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Description

Adopt the official astral-sh/setup-uv action in our setup-python composite action, as part of the broader uv adoption tracked in #219 (GitHub Actions integration item).

Changes:

  • Install uv via astral-sh/setup-uv@v9 instead of pip install --upgrade uv (faster: downloads a prebuilt binary and skips pip entirely).
  • Replace the hand-rolled cache steps (cache dir lookup + weekly date-based cache key) with the action's built-in caching. The cache key now includes the platform, the uv version, and a hash of pyproject.toml + requirements/*.txt, plus a per-Python-version suffix (mirroring the previous behavior of one cache per Python version). Since uv releases frequently, the uv version in the key also gives us organic cache rotation, replacing the previous weekly TTL.
  • Drop the unused install-seed-packages input (no callers use it).

The python-version and requirements inputs and the uv pip install --system behavior are unchanged, so no workflow changes are needed.

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--386.org.readthedocs.build/en/386/

@tpvasconcelos
tpvasconcelos merged commit 658306c into main Jul 25, 2026
11 of 13 checks passed
@tpvasconcelos
tpvasconcelos deleted the 219-setup-uv-action branch July 25, 2026 03:46
@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 (978b863) to head (abb6fa8).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #386   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          657       657           
  Branches        85        85           
=========================================
  Hits           657       657           
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.

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