Compare commits

..

1 commit
ci ... main

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

View file

@ -31,18 +31,6 @@ pytest:
script: script:
- pip install hypothesis pytest pytest-cov - pip install hypothesis pytest pytest-cov
- make check - 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]+)%/' coverage: '/TOTAL.*\s([.\d]+)%/'
artifacts: artifacts:
when: always when: always
@ -51,3 +39,4 @@ test_coverage:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: coverage.xml path: coverage.xml

View file

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