Commit 5a260bff authored by Bart Kamphorst's avatar Bart Kamphorst Committed by Federico Falconieri
Browse files

feat: add coverage keyword to python:pytest

parent aaeba05f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ python:pytest:
    - pip3 install . || true  # installs package only if available
    - pip3 install pytest pytest-cov ${INSTALL_PYTEST_PLUGINS}
    - python3 -m pytest --cov=${CHECK_PATH} --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD} --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report xml:${CI_PROJECT_DIR}/pytest-coverage.xml -p no:cacheprovider ${DEFAULT_ARGS} ${EXTRA_ARGS}
  coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
  artifacts:
    reports:
      junit: pytest-report.xml