-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
47 lines (43 loc) · 944 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
---
stages:
- test
.test-matrix:
stage: test
image: python:${PYTHON_VERSION}-slim
parallel:
matrix:
- PYTHON_VERSION:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
test-matrix:
extends: .test-matrix
before_script:
- cd $CI_PROJECT_DIR
- pip install --upgrade hatch
script:
- hatch env run --env test no-cov
test-matrix-cmd-line:
extends: .test-matrix
before_script:
- cd $CI_PROJECT_DIR
script:
- pip install .
- make_tree "(A,B,(C,D),E);" test.pdf "foo bar"
generate-test-report:
stage: test
image: ubuntu:latest
before_script:
- apt-get update
- apt-get install -y python3 python3-pip
- pip install --upgrade hatch
script:
- hatch env run --env test ci-report
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: unit_test.xml