1# Official Docker image. Look for the different tagged releases at:
2# https://hub.docker.com/r/library/python/tags/
3image: python:3.10-slim-trixie
4
5stages:
6 - deploy
7
8pages: # GitLab pages pipeline
9 stage: deploy # Run at deploy stage
10 rules: # Only on default branch
11 - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
12 script: # Commands to be executed
13 - echo "Working on branch $CI_DEFAULT_BRANCH"
14 - apt-get update && apt-get install -y pandoc # required by sphinx
15 - pip install . # install local package
16 # ipython is required for notebook syntax highlighting
17 - pip install -U sphinx nbsphinx ipython pytest
18 # Build sphinx HTML doc from docs/ into public/
19 - command sphinx-build -b html docs public
20 artifacts: # Precious artifacts to be conserved
21 paths:
22 - public