gitlab-ci: Run HTML coverage directly in tests
This commit is contained in:
parent
8e482bd787
commit
d577ed5499
|
@ -25,10 +25,10 @@ before_script:
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- poetry run pytest . --cov=jeeves.core --cov-report xml --cov-report term
|
- poetry run pytest . --cov=jeeves.core --cov-report html --cov-report term
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage.xml
|
- htmlcov
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -37,7 +37,7 @@ pages:
|
||||||
script:
|
script:
|
||||||
- poetry run docs/build.sh
|
- poetry run docs/build.sh
|
||||||
- mv docs/_build/html/ public
|
- mv docs/_build/html/ public
|
||||||
- coverage html --directory public/htmlcov
|
- mv htmlcov public/htmlcov
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
Reference in New Issue