-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
90 lines (80 loc) · 1.8 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# OSS-DBS is tested for Python >= 3.8
stages:
- "test"
- "run"
- "pages"
.test:
script:
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install ".[test]"
- pytest
.run:
script:
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install "."
- cd input_files
- ossdbs 'inputTest.json'
- ossdbs 'input_cc.json'
test-3.8:
extends: ".test"
stage: "test"
variables:
PYTHONVERSION: "py38"
image: "python:3.8"
run-3.8:
extends: ".run"
stage: "run"
image: "python:3.8"
test-3.9:
extends: ".test"
stage: "test"
variables:
PYTHONVERSION: "py39"
image: "python:3.9"
run-3.9:
extends: ".run"
stage: "run"
image: "python:3.9"
test-3.10:
extends: ".test"
stage: "test"
variables:
PYTHONVERSION: "py310"
image: "python:3.10"
run-3.10:
extends: ".run"
stage: "run"
image: "python:3.10"
pages:
stage: "pages"
# needed with jupyter notebooks
# image: "ubuntu:22.04"
image: "python:3.10"
script:
# needed for jupyter notebooks
# - apt update
# - apt install -y python3 python3-pip
# - apt install -y pandoc
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install .
- cd docs
- pip install -r requirements.txt
# in future also include jupyter notebooks
# - jupyter --version
# - jupyter nbextension install --user --py widgetsnbextension
# - jupyter nbextension enable --user --py widgetsnbextension
# - jupyter nbextension install --user --py webgui_jupyter_widgets
# - jupyter nbextension enable --user --py webgui_jupyter_widgets
- make html
- mv _build/html/ ../public/
artifacts:
paths:
- public
only:
- main