[PR #12629/66cc7b68 backport][3.14] Install Python via astral-sh/setup-uv in test/autobahn jobs#12637
Conversation
(cherry picked from commit 66cc7b6)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.14 #12637 +/- ##
=======================================
Coverage 98.20% 98.20%
=======================================
Files 135 135
Lines 47253 47253
Branches 2536 2536
=======================================
Hits 46405 46405
Misses 671 671
Partials 177 177
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Merging this PR will not alter performance
Comparing Footnotes
|
This is a backport of PR #12629 as merged into master (66cc7b6).
What do these changes do?
Swap
actions/setup-python@v6forastral-sh/setup-uv@v8.1.0inthe two CI matrix jobs that install a Python interpreter —
testand
autobahn.activate-environment: truekeepspython/pipon PATH so the subsequent
uv pip install ...invocations targetthe seeded venv.
enable-cache: truesubsumes the previousactions/cachepip-cache step, which is dropped.Are there changes in behavior for the user?
No. This only affects CI runner provisioning. End-user-visible
behavior of
aiohttpis unaffected.The Codecov flag derived from
steps.python-install.outputs.python-versionnow reports thematrix spec (
3.14t) rather than the resolved patch(
3.14.5t); coarser, but easier to group across patch releases.Is it a substantial burden for the maintainers to support this?
No.
astral-sh/setup-uvis widely used across aio-libs and thebroader Python ecosystem;
activate-environment: truereproducesthe behavior the existing pipeline already relies on, so the swap
is local to the action invocation.
This mirrors aio-libs/yarl#1704, which made the same swap.
Related issue number
N/A.
Checklist
CONTRIBUTORS.txt— already listedCHANGES/folder — to be added in a follow-up commit once the PR number is assignedAgent run details (optional, for reviewers)
actions/setup-pythondownloads non-cached interpreter variantsfrom its release index, which takes ~40s on macos-latest and ~58s
on windows-latest for
3.14t(the free-threaded build is not inthe hosted-tool-cache).
astral-sh/setup-uvpullspython-build-standalone from a CDN, which is a few seconds across
all three OSes. Motivation transferred from the yarl PR's own
measurements.
Drafted with Claude Code (Opus 4.7); reviewed by @bdraco.