diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..227013e --- /dev/null +++ b/.gitlab-ci.yml @@ -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