ci: python pipeline

This commit is contained in:
Piotr Dec 2026-07-12 22:47:44 +02:00
parent 56aec8982c
commit a5b275fa12
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
3 changed files with 20 additions and 0 deletions

View file

@ -13,3 +13,5 @@ steps:
- event: pull_request
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "ci-ready"'
- event: manual
depends_on:
- name: python

View file

@ -12,3 +12,5 @@ steps:
when:
- event: [ tag, push, manual ]
branch: master
depends_on:
- name: python

16
.woodpecker/python.yaml Normal file
View file

@ -0,0 +1,16 @@
steps:
- name: test
image: ghcr.io/astral-sh/uv:0.9-python3.12-alpine
commands:
- uv sync
- pytest
- |
python src/karl/__init__.py 2>&1 | while IFS= read -r line; do
echo "$line"
if echo "$line" | grep -q "Uvicorn running on"; then
pkill -f "uvicorn"
break
fi
done
when:
- event: push