From 629e9fc6f6811898ab38fc1e3688429591a73f62 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 19 Feb 2022 16:21:11 -0600 Subject: [PATCH] Added job to build package documentation --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e89de3f..ab8e5ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file