-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.gitlab-ci.yml
59 lines (49 loc) · 1017 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
58
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
include:
- project: sysadmin/ci-utilities
file:
- /gitlab-templates/blocks/workflow.yml
.tox_base:
stage: test
image: python:3.11
tags:
- Linux
interruptible: true
before_script:
- python --version
- python -m venv .venv
- source .venv/bin/activate
- pip install tox unittest-xml-reporting
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: JUnit*Results.xml
py39:
extends: .tox_base
image: python:3.9
script: tox -e py39
py310:
extends: .tox_base
image: python:3.10
script: tox -e py310
py311:
extends: .tox_base
image: python:3.11
script: tox -e py311
py312:
extends: .tox_base
image: python:3.12
script: tox -e py312
py313:
extends: .tox_base
image: python:3.13
script: tox -e py313
lint:
extends: .tox_base
script: tox -e lint
imports:
extends: .tox_base
script: tox -e check-imports