Update .gitlab-ci.yml

This commit is contained in:
Caspar Jungbacker 2023-05-08 14:07:27 +02:00
parent b97e0408c4
commit 0f577a5e64

View file

@ -23,8 +23,9 @@ before_script:
# This job tests if the book compiles gracefully after a new addition
test-build:
stage: test
only:
- main
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == "main" && $CI_PIPELINE_SOURCE == "push"
script:
- pip install -r requirements.txt
- jupyter-book clean book/