-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (42 loc) · 927 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
image: python:3.12
before_script:
- pip install tox
tests:
parallel:
matrix:
- TOX_TEST_ENV: py38
PYTHON_VERSION: "3.8"
- TOX_TEST_ENV: py39
PYTHON_VERSION: "3.9"
- TOX_TEST_ENV: py310
PYTHON_VERSION: "3.10"
- TOX_TEST_ENV: py311
PYTHON_VERSION: "3.11"
- TOX_TEST_ENV: py312
PYTHON_VERSION: "3.12"
image: python:$PYTHON_VERSION
script:
- tox -e $TOX_TEST_ENV
lint:
script:
- tox -e lint
type-check:
script:
- tox -e type-check
format:
script:
- tox -e format
coverage:
before_script: []
script:
- pip install pytest pytest-cov coverage
- pip install -r requirements.txt
- coverage erase
- pytest -q
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml