run tests: stage: test image: python:3.8 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: reports: cobertura: coverage.xml junit: report.xml tags: - docker