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

46 lines
1.2 KiB
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:
2025-06-21 18:14:56 +02:00
image: ghcr.io/astral-sh/uv:python3.13-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-22 01:37:38 +02:00
push_python:
2025-06-22 01:43:33 +02:00
image: gitea.elara.ws/music-kraken/plugin-twine
2025-06-22 01:37:38 +02:00
settings:
repository_url: "https://code.philo.ydns.eu/api/packages/philorg/pypi"
username:
from_secret: forgejo_username
password:
from_secret: forgejo_password
# For podman build: see https://woodpecker-ci.org/blog/podman-image-build-sigstore
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