CI: switch to woodpecker
This commit is contained in:
parent
e0339c940d
commit
33a4ad3ad0
3 changed files with 60 additions and 48 deletions
39
.woodpecker/build.yaml
Normal file
39
.woodpecker/build.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
when:
|
||||
- event: manual
|
||||
- event: tag
|
||||
|
||||
#depends_on:
|
||||
#- test
|
||||
|
||||
steps:
|
||||
python_sync:
|
||||
image: code.philo.ydns.eu/philorg/uv
|
||||
volumes:
|
||||
- uv-cache:/uv-cache
|
||||
environment:
|
||||
UV_CACHE_DIR: /uv-cache
|
||||
UV_LINK_MODE: copy
|
||||
commands:
|
||||
- uv sync
|
||||
|
||||
python_build:
|
||||
image: code.philo.ydns.eu/philorg/uv
|
||||
volumes:
|
||||
- uv-cache:/uv-cache
|
||||
environment:
|
||||
UV_CACHE_DIR: /uv-cache
|
||||
UV_LINK_MODE: copy
|
||||
commands:
|
||||
- uv build --wheel
|
||||
- uv cache prune --ci
|
||||
|
||||
python_publish:
|
||||
image: code.philo.ydns.eu/philorg/uv
|
||||
environment:
|
||||
OWNER: K-Net
|
||||
REGISTRY_URL: https://code.philo.ydns.eu
|
||||
REGISTRY_TOKEN:
|
||||
from_secret: registry_token
|
||||
commands:
|
||||
- uv publish --publish-url $REGISTRY_URL/api/packages/$OWNER/pypi --token $REGISTRY_TOKEN dist/*.whl
|
||||
failure: ignore
|
21
.woodpecker/test.yaml
Normal file
21
.woodpecker/test.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: manual
|
||||
- event: tag
|
||||
|
||||
steps:
|
||||
sync:
|
||||
image: code.philo.ydns.eu/philorg/uv
|
||||
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:python3.13-alpine
|
||||
commands:
|
||||
- .venv/bin/pytest -s tests/basic.py
|
Loading…
Add table
Add a link
Reference in a new issue