mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
Add CI
This commit is contained in:
parent
9ada9bd28b
commit
49e67f4146
1 changed files with 27 additions and 0 deletions
27
.gitlab-ci.yml
Normal file
27
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
image: python:3.10-slim
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .cache/pip
|
||||
- venv/
|
||||
- archive/_build
|
||||
|
||||
before_script:
|
||||
- python -V
|
||||
- pip install virtualenv
|
||||
- virtualenv venv
|
||||
- source venv/bin/activate
|
||||
|
||||
jupyter-build:
|
||||
stage: build
|
||||
only:
|
||||
- main
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- jupyter-book build -vvv archive/
|
||||
Loading…
Add table
Add a link
Reference in a new issue