Compare commits

..

1 commit
main ... ci

Author SHA1 Message Date
8fcb86e473
ci: add GitLab CI
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-24 16:12:50 +02:00
2 changed files with 13 additions and 2 deletions

View file

@ -31,6 +31,18 @@ pytest:
script:
- pip install hypothesis pytest pytest-cov
- make check
artifacts:
when: always
reports:
junit: report.xml
test_coverage:
stage: test
script:
- pip install hypothesis pytest pytest-cov
- coverage run -m pytest
- coverage report
- coverage xml
coverage: '/TOTAL.*\s([.\d]+)%/'
artifacts:
when: always
@ -39,4 +51,3 @@ pytest:
coverage_report:
coverage_format: cobertura
path: coverage.xml

View file

@ -1,5 +1,5 @@
check:
pytest -vvv --log-level debug --cov --cov-report=term-missing --cov-report=xml:coverage.xml --junitxml=report.xml
pytest -vvv --log-level debug --cov --cov-report=term-missing --junitxml=report.xml
lint: black flake8 mypy