mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
Use Miniconda instead of virtualenv for environment
This commit is contained in:
parent
54406100f2
commit
bdd4090b2e
1 changed files with 6 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue