fix CI: pin Python 3.13.11 to match container image
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful

Use uv python pin + only-system preference to prevent uv from
downloading a different Python version and wiping the venv.
This commit is contained in:
kert
2026-02-28 15:46:11 -05:00
parent 3db0aff9b0
commit 28e22031f4

View File

@@ -8,16 +8,24 @@ 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
UV_LINK_MODE: copy
commands: commands:
- uv sync --dev --python 3.13 - uv python pin 3.13.11
- uv sync --dev
- uv pip install -e . - uv pip install -e .
- uv run ruff check src/ tests/ --output-format=concise - uv run ruff check src/ tests/ --output-format=concise
- uv run ruff format --check src/ tests/ - uv run ruff format --check src/ tests/
- 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
UV_LINK_MODE: copy
commands: commands:
- uv sync --dev --python 3.13 - uv python pin 3.13.11
- uv sync --dev
- uv pip install -e . - uv pip install -e .
- uv run pytest tests/ --no-cov --tb=short -q - uv run pytest tests/ --no-cov --tb=short -q