-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (51 loc) · 1.16 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
stages:
- test
- build
test:
stage: test
image: python:$VERSION
script:
- python$VERSION -m venv venv
- venv/bin/python -m pip install -r requirements-dev.txt
- venv/bin/python -m pip install -e .[dev]
- venv/bin/python -m pytest --cov=src --cov-report=term --cov-report=xml --junit-xml=report.xml
- venv/bin/python -m mypy --no-error-summary docs src tests
- venv/bin/python -m reuse lint
- venv/bin/python -m ruff check docs src tests
- venv/bin/python -m ruff format --diff docs src tests
- venv/bin/sphinx-build docs public
coverage: '/\d+\%\s*$/'
artifacts:
paths:
- public
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
parallel:
matrix:
- VERSION:
- "3.10"
- "3.11"
- "3.12"
build:
stage: build
image: python:3.10
script:
- python3.10 -m venv venv
- venv/bin/python -m pip install build
- venv/bin/python -m build .
artifacts:
paths:
- dist
pages:
stage: build
image: python:3.10
script:
- ls public
artifacts:
paths:
- public
only:
- master