This commit is contained in:
simonwt 2026-04-04 00:15:47 +01:00
commit 33dafdfadc

View file

@ -5,6 +5,7 @@ variables:
UV_VERSION: "0.11.2"
PYTHON_VERSION: "3.13"
BASE_LAYER: trixie-slim
# BASE_LAYER: ubuntu:24.04
# GitLab CI creates a separate mountpoint for the build directory,
# so we need to copy instead of using hard links.
UV_LINK_MODE: copy
@ -13,11 +14,14 @@ stages:
- test
test:
# image: python313
# image:
# name: ghcr.io/astral-sh/uv:$UV_VERSION
# entrypoint: [""]
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
script:
- uv venv
- .venv/bin/activate
- uv sync --frozen
- uv add requests
- python unittests.py
# Test