Merge branch 'main' into 'docker'

# Conflicts:
#   .gitlab-ci.yml
This commit is contained in:
Caspar Jungbacker 2023-08-13 17:42:45 +00:00
commit fe72ddb14a
8 changed files with 259 additions and 11 deletions

View file

@ -15,22 +15,19 @@ cache:
paths:
- .cache/pip
# Before running other jobs, setup the Anaconda environment
before_script:
- python -V
- conda env create -f environment.yml
- conda init bash
- source ~/.bashrc
- conda activate jupyter-book-env
# This job tests if the book compiles gracefully after a new addition
test-build:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == "main" && $CI_PIPELINE_SOURCE == "push"
before_script:
- python -V
- conda env create -f environment.yml
- conda init bash
- source ~/.bashrc
- conda activate jupyter-book-env
script:
- pip install -r requirements.txt
- jupyter-book clean book/
- jupyter-book build book/