s
This commit is contained in:
parent
48cb2419f1
commit
bcea6cfdc3
2 changed files with 31 additions and 18 deletions
|
@ -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
23
.woodpecker/test.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue