forked from vincentlv/DimmiLitho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (60 loc) · 1.13 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
image: python:3.7
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
- python setup.py develop
stages:
- test
- release
pre-commit:
stage: test
script:
- pip install pre-commit
- pre-commit install
- pre-commit run -a
test:
stage: test
script:
- pytest
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