test-woodpecker-python/.woodpecker/build.yaml
phil 4da9f2a360
All checks were successful
ci/woodpecker/push/build Pipeline was successful
OK
2025-06-21 18:14:56 +02:00

35 lines
893 B
YAML

when:
- event: push
branch: main
- event: manual
steps:
sync:
image: ghcr.io/astral-sh/uv:python3.13-alpine
volumes:
- uv-cache:/uv-cache
environment:
UV_CACHE_DIR: /uv-cache
UV_LINK_MODE: copy
commands:
- uv sync
test:
#image: ghcr.io/astral-sh/uv:alpine
image: ghcr.io/astral-sh/uv:python3.13-alpine
commands:
- .venv/bin/pytest -s tests/basic.py
build:
image: ghcr.io/astral-sh/uv:python3.13-alpine
volumes:
- uv-cache:/uv-cache
environment:
UV_CACHE_DIR: /uv-cache
UV_LINK_MODE: copy
commands:
- uv build --wheel
- uv cache prune --ci
# podman-privileged-test:
# image: quay.io/podman/stable
# commands:
# - echo From https://docs.gitlab.com/runner/executors/kubernetes/use_podman_with_kubernetes/
# - podman build . -t playground-bis:testing