ci: python pipeline
This commit is contained in:
parent
56aec8982c
commit
a5b275fa12
3 changed files with 20 additions and 0 deletions
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