jail2ban/.gitlab-ci.yml

26 lines
520 B
YAML

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:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
tags:
- docker
sast:
stage: test
include:
- template: Auto-DevOps.gitlab-ci.yml