-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.gitlab-ci.yml
58 lines (53 loc) · 1.21 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
image: python
py38:
image: python:3.8
stage: build
script:
- pip install tox
- tox -e flake8,pipdeptree,pipdeptree-requirements,py38-xblock15,py38-xblock16,py38-xblock17
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py39:
image: python:3.9
stage: build
script:
- pip install tox
- tox -e flake8,pipdeptree,pipdeptree-requirements,py39-xblock15,py39-xblock16,py39-xblock17
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py310:
image: python:3.10
stage: build
script:
- pip install tox
- tox -e flake8,pipdeptree,pipdeptree-requirements,py310-xblock15,py310-xblock16,py310-xblock17
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py311:
image: python:3.11
stage: build
script:
- pip install tox
- tox -e flake8,pipdeptree,pipdeptree-requirements,py311-xblock15,py311-xblock16,py311-xblock17
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
coverage:
stage: test
script:
- pip install coverage
- python -m coverage combine
- python -m coverage html
- python -m coverage report
coverage: '/TOTAL.*\s+(\d+\.\d+%)$/'
artifacts:
paths:
- htmlcov
expire_in: 1 week