Commit 10688ab6 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'hoverht-master-patch-57016' into 'master'

feat: pytest coverage report

See merge request ci/templates!87
parents 8f90a7f0 187f8675
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10,10 +10,11 @@ python:pytest:
    - pip install .
  script:
    - pip install pytest pytest-asyncio pytest-xdist pytest-cov
    - python -m pytest -vvv --cov=${CHECK_PATH} --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD} --junitxml=${CI_PROJECT_DIR}/pytest-report.xml ${EXTRA_ARGS}
    - python -m pytest -vvv --cov=${CHECK_PATH} --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD} --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report xml:pytest-coverage.xml ${EXTRA_ARGS}
  artifacts:
    reports:
      junit: pytest-report.xml
      cobertura: pytest-coverage.xml
  cache:
    key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
    paths: