diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ed7e5d3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +image: python:3.10-slim + +stages: + - build + +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + +cache: + paths: + - .cache/pip + - venv/ + - archive/_build + +before_script: + - python -V + - pip install virtualenv + - virtualenv venv + - source venv/bin/activate + +jupyter-build: + stage: build + only: + - main + script: + - pip install -r requirements.txt + - jupyter-book build -vvv archive/