mirror of
https://gitlab.com/2-chainz/2chainz.git
synced 2025-06-16 01:46:39 +00:00
Run Pytest in the pipeline
This commit is contained in:
parent
99a07a7493
commit
fdcf5be4c9
@ -1,10 +1,17 @@
|
|||||||
pages:
|
variables:
|
||||||
stage: deploy
|
UV_VERSION: 0.5
|
||||||
|
PYTHON_VERSION: 3.12
|
||||||
|
BASE_LAYER: bookworm-slim
|
||||||
|
# GitLab CI creates a separate mountpoint for the build directory,
|
||||||
|
# so we need to copy instead of using hard links.
|
||||||
|
UV_LINK_MODE: copy
|
||||||
|
|
||||||
|
pytest:
|
||||||
|
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- mkdir public
|
- uv run pytest --junitxml=report.xml
|
||||||
- cp -r website/* public/
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
when: always
|
||||||
- public
|
reports:
|
||||||
only:
|
junit: report.xml
|
||||||
- main
|
|
Loading…
x
Reference in New Issue
Block a user