fix CI: use system Python to avoid network downloads
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:
@@ -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 .
|
||||||
|
|||||||
Reference in New Issue
Block a user