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