Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
8fcb86e473 |
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue