9
9
steps :
10
10
11
11
- bash : |
12
- . ./scripts/set_ci_env.sh 3.8
13
- conda install -y conda-build conda-verify numpy cython pytest pycodestyle autopep8 black
14
- echo ========================= Run style check ===============================
12
+ echo ========================= Conda ENV ====================================
13
+ conda create -q -y -n CondaCodeStyle python=3.8 conda-build conda-verify \
14
+ numpy cython pytest \
15
+ pycodestyle autopep8 black
16
+ . /usr/share/miniconda/etc/profile.d/conda.sh
17
+ conda activate CondaCodeStyle
18
+ echo ========================= CI ENV =======================================
19
+ . ./scripts/set_ci_env.sh
20
+ echo ========================= Run style check ==============================
15
21
# variables are not used but have to be installed for setuptools
16
22
# export ONEAPI_ROOT=/opt/intel
17
23
# export MKLROOT=/opt/intel
18
24
python ./setup.py style
19
- echo ========================= style check finished ===============================
25
+ echo ========================= style check finished =========================
20
26
21
27
- job : test_valgrind
22
28
displayName : Valgrind
@@ -27,10 +33,15 @@ jobs:
27
33
steps :
28
34
29
35
- bash : |
36
+ echo ========================= Conda ENV =======================================
37
+ conda create -q -y -n dpnp
38
+ . /usr/share/miniconda/etc/profile.d/conda.sh
39
+ conda activate dpnp
40
+ echo ========================= CI ENV ==========================================
30
41
. ./scripts/set_ci_env.sh
31
- echo ========================= build DPNP ===============================
42
+ echo ========================= build DPNP ======================================
32
43
./0.build.sh
33
- echo ========================= run valgrind ===============================
44
+ echo ========================= run valgrind ====================================
34
45
export PYTHONMALLOC=malloc
35
46
valgrind --show-leak-kinds=definite --log-file=/tmp/valgrind-output \
36
47
python -m pytest tests/third_party/cupy/math_tests/test_arithmetic.py \
@@ -42,11 +53,18 @@ jobs:
42
53
vmImage : ' ubuntu-20.04'
43
54
steps :
44
55
- bash : |
45
- . ./scripts/set_ci_env.sh 3.8
46
- conda install -y conda-build conda-verify numpy cython pytest pycodestyle autopep8 cython pytest pytest-cov
47
- echo ========================= build DPNP ===============================
56
+ echo ========================= Conda ENV =================================
57
+ conda create -q -y -n CondaCodeCov python=3.8 conda-build conda-verify \
58
+ numpy cython pytest \
59
+ pycodestyle autopep8 \
60
+ cython pytest pytest-cov
61
+ . /usr/share/miniconda/etc/profile.d/conda.sh
62
+ conda activate CondaCodeCov
63
+ echo ========================= CI ENV ====================================
64
+ . ./scripts/set_ci_env.sh
65
+ echo ========================= build DPNP ================================
48
66
./0.build.sh
49
- echo ========================= run code coverage ===============================
67
+ echo ========================= run code coverage =========================
50
68
pytest --cov-report xml:coverage.xml --cov-report term-missing --cov=dpnp
51
69
export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b"
52
70
bash <(curl -s https://codecov.io/bash) -f coverage.xml
@@ -69,10 +87,15 @@ jobs:
69
87
versionSpec : ' $(python.version)'
70
88
displayName : ' Use Python $(python.version)'
71
89
- bash : |
72
- . ./scripts/set_ci_env.sh $(python.version)
73
- echo ========================= build DPNP ===============================
90
+ echo ========================= Conda ENV ===========================
91
+ conda create -q -y -n dpnp$(python.version) python=$(python.version)
92
+ . /usr/share/miniconda/etc/profile.d/conda.sh
93
+ conda activate dpnp$(python.version)
94
+ echo ========================= CI ENV ==============================
95
+ . ./scripts/set_ci_env.sh
96
+ echo ========================= build DPNP ==========================
74
97
./0.build.sh
75
- echo ========================= run pytest ===============================
98
+ echo ========================= run pytest ==========================
76
99
pytest
77
100
78
101
- job : ubuntu2004_tests_external
@@ -93,10 +116,15 @@ jobs:
93
116
versionSpec : ' $(python.version)'
94
117
displayName : ' Use Python $(python.version)'
95
118
- bash : |
96
- . ./scripts/set_ci_env.sh $(python.version)
97
- echo ========================= build DPNP ===============================
119
+ echo ========================= Conda ENV ===========================
120
+ conda create -q -y -n dpnp$(python.version) python=$(python.version)
121
+ . /usr/share/miniconda/etc/profile.d/conda.sh
122
+ conda activate dpnp$(python.version)
123
+ echo ========================= CI ENV ==============================
124
+ . ./scripts/set_ci_env.sh
125
+ echo ========================= build DPNP ==========================
98
126
./0.build.sh
99
- echo ========================= run tests ===============================
127
+ echo ========================= run tests ===========================
100
128
python -m tests_external.numpy.runtests
101
129
102
130
# test python ./setup.py bdist_wheel command with no dpctl
@@ -106,14 +134,20 @@ jobs:
106
134
vmImage : ' ubuntu-20.04'
107
135
steps :
108
136
- bash : |
137
+ echo ========================= Conda ENV =======================================
138
+ conda create -q -y -n dpnp
139
+ . /usr/share/miniconda/etc/profile.d/conda.sh
140
+ conda activate dpnp
141
+
142
+ echo ========================= CI ENV ==========================================
109
143
./scripts/install_system_deps.sh
110
144
. ./scripts/install_cmake_lin.sh
111
145
. /opt/intel/oneapi/setvars.sh
112
146
113
147
./scripts/install_python_deps.sh
114
148
# ./scripts/build_deps_dpctl.sh
115
149
116
- echo ========================= make DPNP bdist package ===============================
150
+ echo ========================= make DPNP bdist package =========================
117
151
python ./setup.py bdist_wheel
118
152
- publish : dist
119
153
artifact : ' package_$(Agent.JobName)_$(Agent.OS)'
@@ -218,6 +252,12 @@ jobs:
218
252
vmImage : ' ubuntu-20.04'
219
253
steps :
220
254
- bash : |
255
+ echo ========================= Conda ENV =============================================
256
+ conda create -q -y -n dpnp
257
+ . /usr/share/miniconda/etc/profile.d/conda.sh
258
+ conda activate dpnp
259
+
260
+ echo ========================= CI ENV ================================================
221
261
./scripts/install_system_deps.sh
222
262
./scripts/install_system_deps_intelpython.sh
223
263
@@ -227,7 +267,7 @@ jobs:
227
267
./scripts/install_python_deps.sh
228
268
./scripts/build_deps_dpctl.sh
229
269
230
- echo ========================= make DPNP+DPCTL bdist package ===============================
270
+ echo ========================= make DPNP+DPCTL bdist package =========================
231
271
python ./setup.py bdist_wheel
232
272
- publish : dist
233
273
artifact : ' package_dpnp_dpctl_$(Agent.JobName)_$(Agent.OS)'
@@ -239,6 +279,12 @@ jobs:
239
279
vmImage : ' ubuntu-20.04'
240
280
steps :
241
281
- bash : |
282
+ echo ========================= Conda ENV =================================
283
+ conda create -q -y -n dpnp
284
+ . /usr/share/miniconda/etc/profile.d/conda.sh
285
+ conda activate dpnp
286
+
287
+ echo ========================= CI ENV ====================================
242
288
./scripts/install_system_deps.sh
243
289
. ./scripts/install_cmake_lin.sh
244
290
./scripts/install_system_deps_intelpython.sh
@@ -249,7 +295,7 @@ jobs:
249
295
./scripts/build_deps_dpctl.sh
250
296
251
297
conda list
252
- echo ========================= make DPNP package ===============================
298
+ echo ========================= make DPNP package =========================
253
299
conda-build conda-recipe/
254
300
- publish : /opt/intel/oneapi/intelpython/latest/conda-bld
255
301
artifact : ' package_$(Agent.JobName)_$(Agent.OS)'
@@ -295,10 +341,15 @@ jobs:
295
341
vmImage : ' ubuntu-20.04'
296
342
steps :
297
343
- bash : |
344
+ echo ========================= Conda ENV ==================================
345
+ conda create -q -y -n dpnp
346
+ . /usr/share/miniconda/etc/profile.d/conda.sh
347
+ conda activate dpnp
348
+ echo ========================= CI ENV =====================================
298
349
. ./scripts/install_cmake_lin.sh
299
350
./scripts/install_system_deps.sh # no intel python
300
351
./scripts/install_python_deps.sh # numpy, conda-build and etc.
301
- echo ========================= build DPNP package ===============================
352
+ echo ========================= build DPNP package =========================
302
353
./0.build.sh
303
354
304
355
# DPNP backend clib tests building and running
0 commit comments