Repository navigation
Install uv with astral-sh/setup-uv action in CI - #129
Merged
Merged
Conversation
The pytest jobs already get `uv` from the cached venv (it is part of the `dev` extra), so their separate install step is dropped entirely.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #129 +/- ##
==========================================
+ Coverage 94.32% 94.33% +0.01%
==========================================
Files 25 25
Lines 4337 4345 +8
==========================================
+ Hits 4091 4099 +8
Misses 246 246 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ert before merge)" This reverts commit d395765.
Contributor
Author
The other PR already cached the venv. This run here shows that For Prek/ruff fixes, see both: |
TheJulianJES
marked this pull request as ready for review
October 12, 2026 09:30
This was referenced Oct 12, 2026
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
curl | shto install uv with theastral-sh/setup-uvaction, like we use for all zigpy repos.uvfrom the cached venv (due to being part of thedevextra).Detailed AI-generated PR description
A recent CI run on
devfailed inprepare-basebecause the uv install script download hit a connection reset, which leftuvmissing for the rest of the job: https://github.com/puddly/serialx/actions/runs/37135339486/job/111238619586This replaces
curl -LsSf https://astral.sh/uv/install.sh | shwithastral-sh/setup-uv(already used by the docs workflow), which retries its version manifest fetch, downloads uv from the Astral mirror with a fallback to GitHub Releases, and verifies checksums:prepare-baseandcompile-esphomeinstall uv withsetup-uv, only on a cache miss like the step that uses it. Its own cache is disabled since the venv/binary is already cached.pytestandpytest-esphomedrop their uv install step entirely.uvis part of thedevextra, so it's already in the cached venv, and everyuvcall in those jobs runs after the venv is activated (the curl-installed copy was shadowed byvenv/bin/uvanyway).The docs workflow is also bumped from
setup-uvv8.1.0 to v10.2.0 to keep both on the same pin. It setsenable-cache: trueexplicitly, so the v9/v10 cache default changes don't affect it.