From 49e67f4146cc904d56ba1fab3baf903a9f22ca0b Mon Sep 17 00:00:00 2001 From: Caspar Jungbacker Date: Sun, 16 Apr 2023 12:59:18 +0200 Subject: [PATCH] Add CI --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml 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/