fix CI: use system Python to avoid network downloads
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/push/deploy Pipeline failed

Set UV_PYTHON_PREFERENCE=only-system so uv uses the Python
bundled in the container image instead of downloading from GitHub.
This commit is contained in:
kert
2026-02-28 15:29:05 -05:00
parent b92d78d8cc
commit 26db81b8dd

View File

@@ -8,6 +8,8 @@ when:
steps: steps:
- name: lint - name: lint
image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim
environment:
UV_PYTHON_PREFERENCE: only-system
commands: commands:
- uv sync --dev - uv sync --dev
- uv pip install -e . - uv pip install -e .
@@ -16,6 +18,8 @@ steps:
- name: test - name: test
image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim
environment:
UV_PYTHON_PREFERENCE: only-system
commands: commands:
- uv sync --dev - uv sync --dev
- uv pip install -e . - uv pip install -e .