ci: use uv to install poetry in CI workflow#652
Merged
Conversation
Mirror of python-zeroconf/python-zeroconf#1673 (which mirrors esphome/aioesphomeapi#1650) for dbus-fast. Replace the slow snok/install-poetry action with astral-sh/setup-uv + uv tool install poetry in the test and benchmark jobs. setup-python's cache: "poetry" stays — it caches the project venv keyed off poetry.lock and is independent of how poetry itself reaches PATH. The test_big_endian job installs poetry via apt inside an s390x container and is left alone. No production code touched; workflow-only.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #652 +/- ##
==========================================
+ Coverage 88.58% 89.16% +0.57%
==========================================
Files 29 29
Lines 3488 3488
Branches 602 602
==========================================
+ Hits 3090 3110 +20
+ Misses 247 228 -19
+ Partials 151 150 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Mirror of python-zeroconf/python-zeroconf#1673 (which mirrors esphome/aioesphomeapi#1650) for
dbus-fast. Speeds up CI by replacing the slowsnok/install-poetryprovisioning withastral-sh/setup-uv+uv tool install poetry. No production code is touched.Details
testjob — addsastral-sh/setup-uv@v8.1.0(SHA-pinned,enable-cache: true) before installing poetry, then runsuv tool install poetryin place ofsnok/install-poetry@v1.4.1.setup-python'scache: "poetry"is preserved — it caches the per-job project venv keyed offpoetry.lock, which is independent of how poetry itself reachesPATH.benchmarkjob — same swap.test_big_endianjob — left alone. It runs inside an s390x container viauraimo/run-on-arch-actionand installs poetry from apt (python3-poetry); uv isn't on that path.Win is per-job, so it compounds across the test matrix (CPython 3.10–3.14, 3.14t ×
skip_cython/use_cythonon ubuntu-latest = 12 jobs). Steady-state behaviour is unchanged; the speed-up shows up on every job's poetry-install step.Test plan
testmatrix is green across all 12 rows (the workflow change is exercised by every job on this PR).benchmarkjob runs to completion and CodSpeed posts a delta.test_big_endianstill passes (unchanged).lintandcommitlintjobs are green.🤖 Generated with Claude Code