test-woodpecker-python/.woodpecker/build.yaml

36 lines
882 B
YAML
Raw Normal View History

2025-06-20 19:03:22 +02:00
when:
- event: push
branch: main
2025-06-21 14:52:59 +02:00
- event: manual
2025-06-20 19:03:22 +02:00
steps:
2025-06-21 14:52:59 +02:00
sync:
2025-06-21 16:31:46 +02:00
image: ghcr.io/astral-sh/uv:python3.13-alpine
2025-06-21 17:33:17 +02:00
volumes:
2025-06-21 17:41:14 +02:00
- uv-cache:/uv-cache
2025-06-21 15:17:58 +02:00
environment:
2025-06-21 17:26:47 +02:00
UV_CACHE_DIR: /uv-cache
2025-06-21 16:33:44 +02:00
UV_LINK_MODE: copy
2025-06-20 19:03:22 +02:00
commands:
2025-06-21 16:30:39 +02:00
- uv sync
2025-06-21 14:52:59 +02:00
test:
2025-06-21 16:08:03 +02:00
#image: ghcr.io/astral-sh/uv:alpine
image: ghcr.io/astral-sh/uv:python3.13-alpine
2025-06-21 14:52:59 +02:00
commands:
2025-06-21 17:52:37 +02:00
- .venv/bin/pytest -s tests/basic.py
2025-06-21 14:52:59 +02:00
build:
image: ghcr.io/astral-sh/uv:alpine
2025-06-21 17:56:31 +02:00
volumes:
- uv-cache:/uv-cache
environment:
UV_CACHE_DIR: /uv-cache
UV_LINK_MODE: copy
2025-06-21 14:52:59 +02:00
commands:
- uv build --wheel
2025-06-21 18:02:52 +02:00
- uv cache prune --ci
2025-06-21 17:56:31 +02:00
# 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