forked from gdsfactory/gdsfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
93 lines (78 loc) · 1.58 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
91
92
93
image: python:3.9
before_script:
- pip list
- python -V # Print out python version for debugging
- which python # Print out which python for debugging
- pip install -r requirements.txt --upgrade
- pip install -r requirements_full.txt --upgrade
- pip install -r requirements_pip.txt --upgrade
- pip install -r requirements_dev.txt --upgrade
- python setup.py develop
stages:
- test
- release
- docs
pre-commit:
stage: test
script:
- pip install pre-commit
- pre-commit install
- pre-commit run -a
test:
stage: test
script:
- pytest
pages:
stage: docs
script:
- pip install -r requirements_dev.txt
- mkdir public
- cd docs
- make html
- cp -r build/html/* ../public
artifacts:
paths:
- public
only:
- master
- /docs/
# python37:
# image: python:3.7
# stage: test
# script:
# - python -m pip install tox
# - python -m tox -e py37
# python38:
# image: python:3.8
# stage: test
# script:
# - python -m pip install tox
# - python -m tox -e py38
# python39:
# image: python:3.9
# stage: test
# script:
# - python -m pip install tox
# - python -m tox -e py39
# doctest:
# stage: test
# script:
# - python -m pip install tox
# - python -m tox -e docs
flake8:
stage: test
script:
- python -m pip install tox
- python -m tox -e flake8
# mypy:
# stage: test
# script:
# - python -m pip install tox
# - python -m tox -e mypy
# docs:
# stage: release
# script:
# - cd docs
# - make install clean html upload
# only:
# - release