Added job to build package documentation

This commit is contained in:
Manuel Cortez 2022-02-19 16:21:11 -06:00
parent ff669e7c5a
commit 629e9fc6f6
No known key found for this signature in database
GPG Key ID: 262CC30FA01B5CBF

View File

@ -1,5 +1,6 @@
stages:
- test
- doc
test:mipy:
stage: test
@ -26,7 +27,7 @@ test:pytest:
script:
- 'pip install --upgrade pytest coverage requests_mock'
- 'pip install --upgrade -r requirements.txt'
- 'coverage run --source . -m pytest --junitxml=report.xml'
- 'coverage run --source . --omit conf.py -m pytest --junitxml=report.xml'
- 'coverage report'
- 'coverage xml'
only:
@ -38,4 +39,21 @@ test:pytest:
when: always
reports:
junit: report.xml
cobertura: coverage.xml
cobertura: coverage.xml
pages:
image: python:latest
tags:
- docker
interruptible: true
only:
- master
stage: doc
script:
- 'pip install --upgrade sphinx'
- 'make html'
- 'mv -f _build/html public'
artifacts:
expire_in: 1 day
paths:
- public