Use uv image build with same python version
This commit is contained in:
parent
b4340176da
commit
62053a1048
3 changed files with 3 additions and 3 deletions
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue