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:
|
steps:
|
||||||
- name: python linting
|
- name: python linting
|
||||||
image: ghcr.io/astral-sh/uv:latest
|
image: ghcr.io/astral-sh/uv:python3.11-alpine
|
||||||
commands:
|
commands:
|
||||||
- uv sync --group ci
|
- uv sync --group ci
|
||||||
- uv run --no-sync -- check src/
|
- uv run --no-sync -- check src/
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ services:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: python tests
|
- name: python tests
|
||||||
image: python:3.11-alpine
|
image: ghcr.io/astral-sh/uv:python3.11-alpine
|
||||||
environment:
|
environment:
|
||||||
DJANGO_SETTINGS_MODULE: "newsreader.conf.ci"
|
DJANGO_SETTINGS_MODULE: "newsreader.conf.ci"
|
||||||
DJANGO_SECRET_KEY: sekrit
|
DJANGO_SECRET_KEY: sekrit
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ USER newsreader
|
||||||
|
|
||||||
COPY --chown=newsreader:newsreader uv.lock pyproject.toml /app/
|
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 \
|
RUN --mount=type=cache,target=$HOME/.cache/uv \
|
||||||
uv sync --frozen --no-default-groups --no-install-project
|
uv sync --frozen --no-default-groups --no-install-project
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue