ci: python pipeline splitted
This commit is contained in:
parent
86e7d4b8c3
commit
d61602cb78
1 changed files with 10 additions and 3 deletions
|
|
@ -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 ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue