Skip to content
Snippets Groups Projects
Select Git revision
  • 399d6f34e970251f00e4e401d10b9a266602e20b
  • main default protected
2 results

.gitlab-ci.yml

Blame
  • 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