-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
159 lines (136 loc) · 3.4 KB
/
.gitlab-ci.yml
File metadata and controls
159 lines (136 loc) · 3.4 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
stages:
- "Code Quality"
- "Unit Tests"
- "Reporting"
- "Minitest"
- docs
- deploy
# -------------------- Code Quality ---------------------------------------------------------------------
.qa-base:
stage: "Code Quality"
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:alpine
needs: []
except:
variables:
- $ENABLE_NIGHTLY_BUILDS
tags:
- docker
lint:
extends: .qa-base
script:
- nox --session lint
typecheck:
extends: .qa-base
script:
- nox --session typecheck
# -------------------- Unit Tests ---------------------------------------------------------------------
.testsuite-base:
stage: "Unit Tests"
needs: []
after_script:
- mv .coverage .coverage.${CI_JOB_ID}
artifacts:
when: always
paths:
- .coverage.*
- test-report
reports:
junit: report.xml
"testsuite-gpu-py3.10":
extends: .testsuite-base
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:ubuntu24.04-cuda12.6
script:
- nox -s "testsuite-3.10(cupy12)"
tags:
- docker
- cuda
- cudaComputeCapability6.1
- AVX
"testsuite-cpu-py3.13":
extends: .testsuite-base
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:alpine
script:
- nox -s "testsuite-3.13(cpu)"
tags:
- docker
- AVX
"testsuite-dpctl-py3.12":
extends: .testsuite-base
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:ubuntu24.04-cuda12.6-oapi
script:
- nox --session "testsuite-3.12(dpctl)"
tags:
- docker
- cuda
- AVX
"testsuite-macOS-arm64-py3.11":
extends: .testsuite-base
before_script:
- python -m pip install nox
script:
- python -m nox -s "testsuite-3.11(cpu)"
tags:
- macmini
- arm64
# -------------------- Reporting -------------------------------------------------------------------------
coverage-report:
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:alpine
stage: "Reporting"
script:
- nox -s "coverage_report"
coverage: /TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
tags:
- docker
artifacts:
when: always
paths:
- coverage_report
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
# -------------------- Minitest -------------------------------------------------------------------------
"minitest-qemu-sve":
stage: "Minitest"
needs: []
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:qemu-aarch64
allow_failure: true
variables:
PYTHONPATH: ${CI_PROJECT_DIR}/src
before_script:
- source ${PYCODEGEN_VENV}/bin/activate
- ln -s maintainer/qemu_armv8_fixtures.py override_fixtures.py
script:
- nox -s "minitest_simd(SVE)" --force-venv-backend=none
tags:
- docker
- multiarch
# -------------------- Documentation ---------------------------------------------------------------------
build-documentation:
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox:ubuntu24.04-cuda12.6-oapi
stage: docs
needs: []
script:
- nox --session docs -- --fail-on-warnings
tags:
- docker
- cuda
- cudaComputeCapability6.1
artifacts:
paths:
- docs/build/html
when: always
pages:
image: alpine:latest
stage: deploy
needs: ["testsuite-gpu-py3.10", "build-documentation"]
script:
- mv docs/build/html public
- mv coverage_report public/coverage_report
artifacts:
paths:
- public
tags:
- docker
only:
- master@pycodegen/pystencils