run tests: stage: test image: python:3.9 script: - pip install pytest pytest-cov pytest-mock pytest-flask - pip install Flask-HTTPAuth - coverage run -m pytest --junitxml=report.xml - coverage report - coverage xml coverage: '/^TOTAL.+?(\d+\%)$/' artifacts: when: always reports: coverage_report: coverage_format: cobertura path: coverage.xml junit: report.xml tags: - docker