Select Git revision
.gitlab-ci.yml
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 841 B
image: python:3.9-slim-bullseye
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/topics/caching/
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- python --version ; pip --version # For debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
pages:
script:
- pip install -r requirements.txt
- jupyter-book build pg_cs
- mv pg_cs/_build/html/ public/
artifacts:
paths:
- public
expire_in: 4 weeks
tags:
- runner1
only:
- main
# DO deploy