From d744b5e33b47568d803c659ab17024144404c1df Mon Sep 17 00:00:00 2001 From: Michael Buehlmann <buehlmann.michi@gmail.com> Date: Thu, 20 Jan 2022 17:00:39 -0600 Subject: [PATCH] update ci script --- .gitlab-ci.yml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e919cbf..c824a69 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,9 @@ +stages: + - build + - docs + - deploy + + image: debian:latest before_script: - apt update && apt -y install git gcc cmake mpich @@ -18,12 +24,10 @@ build_python: stage: build before_script: - apt update && apt -y install git gcc cmake mpich python3 python3-pip - - pip install numpy virtualenv - - virtualenv venv - - source venv/bin/activate + - python3 -m pip install numpy script: - - python setup.py bdist_wheel - - pip install dist/* + - python3 setup.py bdist_wheel + - python3 -m pip install dist/* artifacts: paths: - dist/*.whl @@ -33,3 +37,20 @@ build_python: paths: - .cache/pip - venv/ + +build_docs: + stage: docs + dependencies: + - build_python + before_script: + - apt update && apt -y install mpich python3 python3-pip + - python3 -m pip install --upgrade pip + - python3 -m pip install numpy + - python3 -m pip install dist/* + - python3 -m pip install Sphinx sphinx-rtd-theme sphinxcontrib-napoleon numpydoc myst-parser + script: + - cd docs + - make dirhtml + artifacts: + paths: + - docs/_build/dirhtml/ -- GitLab