ci: Add GitLab python pipelines

Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
Sven Sager
2025-05-22 11:14:18 +02:00
parent cc560770ce
commit 3dee7784e2

19
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,19 @@
default:
tags:
- self-hosted
- host-arm64
- high-perf
run_tests:
stage: test
image: python:3
script:
- pip install -r requirements.txt
- PYTHONPATH=src pytest -v --junitxml=report.xml --cov=src --cov-report term --cov-report xml:coverage.xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
junit: ${CI_PROJECT_DIR}/report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml