diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ee83893c9ebad201d022030f1e92ba78e5a51eb..9dce2b8a638d9361643ba3640de3bfb6c4f92a41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,31 +5,17 @@ # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ -image: python:3.9 - +image: continuumio/miniconda3:latest # 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: + - conda env create -n ntrfc python=3.9 + - conda activate ntrfc - python -m pip install --upgrade pip - - python --version # For debugging - - pip install virtualenv - - virtualenv venv - - source venv/bin/activate - - apt install libgl1-mesa-glx - + stages: # List of stages for jobs, and their order of execution - build