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: stages:
- test - test
- doc
test:mipy: test:mipy:
stage: test stage: test
@ -26,7 +27,7 @@ test:pytest:
script: script:
- 'pip install --upgrade pytest coverage requests_mock' - 'pip install --upgrade pytest coverage requests_mock'
- 'pip install --upgrade -r requirements.txt' - '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 report'
- 'coverage xml' - 'coverage xml'
only: only:
@ -39,3 +40,20 @@ test:pytest:
reports: reports:
junit: report.xml 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