Use Miniconda instead of virtualenv for environment

This commit is contained in:
Caspar Jungbacker 2023-06-10 16:02:29 +02:00
parent 54406100f2
commit bdd4090b2e

View file

@ -1,4 +1,4 @@
image: python:3.10-bullseye
image: continuumio/miniconda:latest
stages:
- test
@ -11,14 +11,14 @@ variables:
cache:
paths:
- .cache/pip
- venv/
# Before running other jobs, setup Python
# Before running other jobs, setup the Anaconda environment
before_script:
- python -V
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- conda env create -f environment.yml
- conda init bash
- source ~/.bashrc
- conda activate jupyter-book-env
# This job tests if the book compiles gracefully after a new addition
test-build: