-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (51 loc) · 994 Bytes
/
.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
image: python:3.9-alpine
stages:
- style
- test
- deploy
style:flake8:
stage: style
script:
- pip install -U tox
- tox -e flake8
test:3.9:
stage: test
script:
- apk add python3-dev gcc libc-dev libffi-dev
- pip install -U tox
- tox
test:coverage:
stage: test
script:
- apk add python3-dev gcc libc-dev libffi-dev
- pip install -r requirements.txt
- pip install pytest pytest-cov
- coverage run -m pytest
- coverage report
- coverage xml
artifacts:
expire_in: 1 day
reports:
cobertura: coverage.xml
pages:
stage: test
script:
- pip install -U sphinx
- pip install -U sphinx_rtd_theme
- sphinx-build -b html docs/source public
only:
- branches
except:
- main
pages:
stage: deploy
script:
- pip install -U sphinx
- pip install -U sphinx_rtd_theme
- sphinx-build -b html docs/source public
artifacts:
expire_in: 1 day
paths:
- public
only:
- main