ci: python pipeline splitted

This commit is contained in:
Piotr Dec 2026-07-12 23:02:18 +02:00
parent 86e7d4b8c3
commit d61602cb78
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0

View file

@ -1,10 +1,17 @@
steps: steps:
- name: test - name: prepare
image: ghcr.io/astral-sh/uv:0.9-python3.12-alpine image: ghcr.io/astral-sh/uv:0.9-python3.12-alpine
commands: commands:
- apk add --no-cache gcc python3-dev musl-dev linux-headers - apk add --no-cache gcc python3-dev musl-dev linux-headers
- uv sync - uv sync
- name: test
image: ghcr.io/astral-sh/uv:0.9-python3.12-alpine
commands:
- uv sync --group dev
- python -m pytest - python -m pytest
- name: test-run
image: ghcr.io/astral-sh/uv:0.9-python3.12-alpine
commands:
- | - |
python src/karl/__init__.py 2>&1 | while IFS= read -r line; do python src/karl/__init__.py 2>&1 | while IFS= read -r line; do
echo "$line" echo "$line"
@ -13,5 +20,5 @@ steps:
break break
fi fi
done done
when: when:
- event: [ push, manual ] - event: [ push, manual ]