ci: python pipeline
This commit is contained in:
parent
56aec8982c
commit
a5b275fa12
3 changed files with 20 additions and 0 deletions
|
|
@ -13,3 +13,5 @@ steps:
|
|||
- event: pull_request
|
||||
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "ci-ready"'
|
||||
- event: manual
|
||||
depends_on:
|
||||
- name: python
|
||||
|
|
|
|||
|
|
@ -12,3 +12,5 @@ steps:
|
|||
when:
|
||||
- event: [ tag, push, manual ]
|
||||
branch: master
|
||||
depends_on:
|
||||
- name: python
|
||||
|
|
|
|||
16
.woodpecker/python.yaml
Normal file
16
.woodpecker/python.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue