jail2ban/.gitlab-ci.yml

16 lines
328 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
- coverage report
- coverage xml
coverage: '^TOTAL.+?(\d+\%)$'
artifacts:
reports:
cobertura: coverage.xml
tags:
- docker