Commit 5fe8b24e authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch '31-feat-add-coverage-keyword-to-python-pytest-job' into 'main'

feat: add coverage keyword to python:pytest

Closes #31

See merge request just-ci/templates!54
parents aaeba05f 5a260bff
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