This commit is contained in:
phil 2025-06-24 11:14:41 +02:00
parent 48cb2419f1
commit bcea6cfdc3
2 changed files with 31 additions and 18 deletions

View file

@ -1,21 +1,15 @@
when:
- event: push
branch: main
- event: manual
- event: tag
steps:
get_tag:
image: ghcr.io/astral-sh/uv:python3.13-alpine
commands:
- echo $CI_COMMIT_TAG
depends_on:
test
isitatag:
image: ghcr.io/astral-sh/uv:python3.13-alpine
when:
evaluate: '"CI_COMMIT_TAG" in $env'
commands:
- echo "It's a tag!"
steps:
# isitatag:
# image: ghcr.io/astral-sh/uv:python3.13-alpine
# when:
# evaluate: '"CI_COMMIT_TAG" in $env'
sync:
image: ghcr.io/astral-sh/uv:python3.13-alpine
@ -26,11 +20,7 @@ steps:
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:

23
.woodpecker/test.yaml Normal file
View file

@ -0,0 +1,23 @@
when:
- event: push
branch: main
- event: manual
- event: tag
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