test-woodpecker-python/.woodpecker/build.yaml
phil eafec8af18
Some checks failed
ci/woodpecker/push/build Pipeline failed
1
2025-06-21 17:40:12 +02:00

39 lines
978 B
YAML

when:
- event: push
branch: main
- event: manual
steps:
sync:
image: ghcr.io/astral-sh/uv:python3.13-alpine
volumes:
- /cache/uv:/uv-cache
environment:
UV_CACHE_DIR: /uv-cache
UV_LINK_MODE: copy
#UV_PROJECT_ENVIRONMENT: /usr/local
commands:
- pwd
- ls -la > .uv-cache/bar
- uv sync
- ls -l /usr/local/bin
- echo $PATH
test:
#image: ghcr.io/astral-sh/uv:alpine
image: ghcr.io/astral-sh/uv:python3.13-alpine
commands:
- pwd
- which python
- python -c "import sys;print(sys.path)"
- ls -l /usr/local/bin
- pytest -s test/basic.py
build:
image: ghcr.io/astral-sh/uv:alpine
commands:
- uv build --wheel
- ls -l dist
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