ci: run the test job on uv instead of setup-python
build-image / test (push) Successful in 11s
build-image / build (push) Successful in 3s

Replace actions/setup-python (which fails on a cold runner toolcache with a
broken python-versions prebuilt) with the self-contained uv installer, matching
release.yaml. Uses `uv sync --all-extras --locked --python 3.12` and
`uv run --locked pytest`, so the test gate — and therefore the versioned image
build behind it — no longer depends on a warm toolcache.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGzHtDvJur9U7ysgRKRUTN
This commit is contained in:
2026-07-20 10:02:42 -04:00
parent 7f8500199d
commit 272519d8b0
+7 -6
View File
@@ -19,13 +19,14 @@ jobs:
ATHLETE_ID: i1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install (editable, with dev extras)
run: pip install --quiet -e ".[dev]"
- name: Install uv (self-contained; avoids the cold-cache setup-python failure)
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install dependencies (Python 3.12, locked)
run: uv sync --all-extras --locked --python 3.12
- name: Test + coverage gate (>=90%)
run: pytest
run: uv run --locked pytest
build:
needs: test