Use uv image build with same python version
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/tests Pipeline failed

This commit is contained in:
Sonny Bakker 2025-05-05 15:32:47 +02:00
parent b4340176da
commit 62053a1048
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ when:
steps:
- name: python linting
image: ghcr.io/astral-sh/uv:latest
image: ghcr.io/astral-sh/uv:python3.11-alpine
commands:
- uv sync --group ci
- uv run --no-sync -- check src/

View file

@ -15,7 +15,7 @@ services:
steps:
- name: python tests
image: python:3.11-alpine
image: ghcr.io/astral-sh/uv:python3.11-alpine
environment:
DJANGO_SETTINGS_MODULE: "newsreader.conf.ci"
DJANGO_SECRET_KEY: sekrit

View file

@ -21,7 +21,7 @@ USER newsreader
COPY --chown=newsreader:newsreader uv.lock pyproject.toml /app/
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
COPY --from=ghcr.io/astral-sh/uv:python3.11-alpine /usr/local/bin/uv /bin/uv
RUN --mount=type=cache,target=$HOME/.cache/uv \
uv sync --frozen --no-default-groups --no-install-project