19
19
RERUN_TESTS_ON_FAILURE : ' true'
20
20
RUN_TESTS_MAX_ATTEMPTS : 2
21
21
TEST_ENV_NAME : ' test'
22
- TEST_SCOPE : >-
23
- test_absolute.py
24
- test_amin_amax.py
25
- test_arithmetic.py
26
- test_arraycreation.py
27
- test_arraymanipulation.py
28
- test_arraypad.py
29
- test_bitwise.py
30
- test_copy.py
31
- test_counting.py
32
- test_fft.py
33
- test_fill.py
34
- test_flat.py
35
- test_histogram.py
36
- test_indexing.py
37
- test_linalg.py
38
- test_logic.py
39
- test_manipulation.py
40
- test_mathematical.py
41
- test_mixins.py
42
- test_nanfunctions.py
43
- test_ndarray.py
44
- test_outer.py
45
- test_product.py
46
- test_random_state.py
47
- test_search.py
48
- test_sort.py
49
- test_special.py
50
- test_statistics.py
51
- test_sum.py
52
- test_sycl_queue.py
53
- test_umath.py
54
- test_usm_type.py
55
- third_party/cupy/core_tests
56
- third_party/cupy/fft_tests
57
- third_party/cupy/creation_tests
58
- third_party/cupy/indexing_tests
59
- third_party/cupy/lib_tests
60
- third_party/cupy/linalg_tests
61
- third_party/cupy/logic_tests
62
- third_party/cupy/manipulation_tests
63
- third_party/cupy/math_tests
64
- third_party/cupy/padding_tests
65
- third_party/cupy/sorting_tests
66
- third_party/cupy/statistics_tests/test_histogram.py
67
- third_party/cupy/statistics_tests/test_meanvar.py
68
- third_party/cupy/test_ndim.py
69
- third_party/cupy/test_type_routines.py
70
22
VER_JSON_NAME : ' version.json'
71
23
VER_SCRIPT1 : " import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
72
24
VER_SCRIPT2 : " d = j['dpnp'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
88
40
89
41
defaults :
90
42
run :
91
- shell : ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -l {0}' }}
43
+ shell : ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -el {0}' }}
92
44
93
45
continue-on-error : true
94
46
@@ -104,27 +56,21 @@ jobs:
104
56
fetch-depth : 0
105
57
106
58
- name : Setup miniconda
107
- uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
59
+ uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
108
60
with :
109
61
miniforge-version : latest
110
- use-mamba : true
62
+ use-mamba : ' true'
111
63
channels : conda-forge
64
+ conda-remove-defaults : ' true'
112
65
python-version : ${{ matrix.python }}
113
66
activate-environment : ' build'
114
67
115
- # Here is an issue in conda gh-12356 causing adding defaults to the list of channels
116
- # upon running `conda config --append channels conda-forge`, while mamba requires to have only conda-forge channel
117
- - name : Remove defaults channel
118
- run : |
119
- conda config --remove channels defaults
120
- conda config --show
121
-
122
68
# Sometimes `mamba install ...` fails due to slow download speed rate, so disable the check in mamba
123
69
- name : Disable speed limit check in mamba
124
70
run : echo "MAMBA_NO_LOW_SPEED_LIMIT=1" >> $GITHUB_ENV
125
71
126
72
- name : Store conda paths as envs
127
- shell : bash -l {0}
73
+ shell : bash -el {0}
128
74
run : |
129
75
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\\\" '/' >> $GITHUB_ENV
130
76
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
137
83
env :
138
84
CACHE_NUMBER : 1 # Increase to reset cache
139
85
with :
140
- path : ${{ env.CONDA_PKGS_DIR }}
86
+ path : ${{ runner.os == 'Linux' && '/home/runner/conda_pkgs_dir' || 'C:\Users\runneradmin\conda_pkgs_dir' }}
141
87
key :
142
88
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-${{hashFiles('**/meta.yaml') }}
143
89
restore-keys : |
147
93
- name : Build conda package
148
94
run : conda build --no-test --python ${{ matrix.python }} --numpy 2.0 ${{ env.CHANNELS }} conda-recipe
149
95
env :
150
- MAX_BUILD_CMPL_MKL_VERSION : ' 2024.3a0 '
96
+ MAX_BUILD_CMPL_MKL_VERSION : ' 2025.1a0 '
151
97
152
98
- name : Upload artifact
153
99
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -170,7 +116,7 @@ jobs:
170
116
171
117
defaults :
172
118
run :
173
- shell : bash -l {0}
119
+ shell : bash -el {0}
174
120
175
121
strategy :
176
122
matrix :
@@ -199,17 +145,15 @@ jobs:
199
145
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}
200
146
201
147
- name : Setup miniconda
202
- uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
148
+ uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
203
149
with :
204
150
miniforge-version : latest
205
- use-mamba : true
151
+ use-mamba : ' true'
206
152
channels : conda-forge
153
+ conda-remove-defaults : ' true'
207
154
python-version : ${{ matrix.python }}
208
155
activate-environment : ${{ env.TEST_ENV_NAME }}
209
156
210
- - name : Remove defaults channel
211
- run : conda config --remove channels defaults
212
-
213
157
- name : Install conda-index
214
158
run : mamba install conda-index=${{ env.CONDA_INDEX_VERSION }}
215
159
@@ -263,7 +207,7 @@ jobs:
263
207
- name : Run tests
264
208
if : env.RERUN_TESTS_ON_FAILURE != 'true'
265
209
run : |
266
- python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
210
+ python -m pytest -q -ra --disable-warnings -vv .
267
211
working-directory : ${{ env.tests-path }}
268
212
269
213
- name : Run tests
@@ -279,7 +223,7 @@ jobs:
279
223
. $CONDA/etc/profile.d/conda.sh
280
224
conda activate ${{ env.TEST_ENV_NAME }}
281
225
cd ${{ env.tests-path }}
282
- python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
226
+ python -m pytest -q -ra --disable-warnings -vv .
283
227
284
228
test_windows :
285
229
name : Test ['windows-2019', python='${{ matrix.python }}']
@@ -328,17 +272,15 @@ jobs:
328
272
dir ${{ env.extracted-pkg-path }}
329
273
330
274
- name : Setup miniconda
331
- uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
275
+ uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
332
276
with :
333
277
miniforge-version : latest
334
- use-mamba : true
278
+ use-mamba : ' true'
335
279
channels : conda-forge
280
+ conda-remove-defaults : ' true'
336
281
python-version : ${{ matrix.python }}
337
282
activate-environment : ${{ env.TEST_ENV_NAME }}
338
283
339
- - name : Remove defaults channel
340
- run : conda config --remove channels defaults
341
-
342
284
- name : Store conda paths as envs
343
285
run : |
344
286
@echo on
@@ -366,7 +308,7 @@ jobs:
366
308
@echo on
367
309
set "SCRIPT=${{ env.VER_SCRIPT1 }} ${{ env.VER_SCRIPT2 }}"
368
310
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
369
- SET PACKAGE_VERSION=%%F
311
+ set PACKAGE_VERSION=%%F
370
312
)
371
313
echo PACKAGE_VERSION: %PACKAGE_VERSION%
372
314
(echo PACKAGE_VERSION=%PACKAGE_VERSION%) >> %GITHUB_ENV%
@@ -405,7 +347,11 @@ jobs:
405
347
shell : pwsh
406
348
run : |
407
349
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
408
- &$script_path
350
+ if (Test-Path $script_path) {
351
+ &$script_path
352
+ } else {
353
+ Write-Warning "File $script_path was NOT found!"
354
+ }
409
355
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
410
356
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
411
357
Get-Content -Tail 5 -Path $cl_cfg
@@ -418,7 +364,7 @@ jobs:
418
364
- name : Run tests
419
365
if : env.RERUN_TESTS_ON_FAILURE != 'true'
420
366
run : |
421
- python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
367
+ python -m pytest -q -ra --disable-warnings -vv .
422
368
working-directory : ${{ env.tests-path }}
423
369
424
370
- name : Run tests
@@ -433,7 +379,7 @@ jobs:
433
379
command : >-
434
380
mamba activate ${{ env.TEST_ENV_NAME }}
435
381
& cd ${{ env.tests-path }}
436
- & python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
382
+ & python -m pytest -q -ra --disable-warnings -vv .
437
383
438
384
upload :
439
385
name : Upload ['${{ matrix.os }}', python='${{ matrix.python }}']
@@ -449,7 +395,7 @@ jobs:
449
395
450
396
defaults :
451
397
run :
452
- shell : bash -l {0}
398
+ shell : bash -el {0}
453
399
454
400
continue-on-error : true
455
401
@@ -469,17 +415,15 @@ jobs:
469
415
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
470
416
471
417
- name : Setup miniconda
472
- uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
418
+ uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
473
419
with :
474
420
miniforge-version : latest
475
- use-mamba : true
421
+ use-mamba : ' true'
476
422
channels : conda-forge
423
+ conda-remove-defaults : ' true'
477
424
python-version : ${{ matrix.python }}
478
425
activate-environment : ' upload'
479
426
480
- - name : Remove defaults channel
481
- run : conda config --remove channels defaults
482
-
483
427
- name : Install anaconda-client
484
428
run : mamba install anaconda-client
485
429
@@ -498,24 +442,26 @@ jobs:
498
442
499
443
cleanup_packages :
500
444
name : Clean up anaconda packages
445
+
501
446
needs : [upload]
447
+
502
448
runs-on : ' ubuntu-latest'
449
+
503
450
defaults :
504
451
run :
505
452
shell : bash -el {0}
453
+
506
454
steps :
507
- - uses : conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
455
+ - uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
508
456
with :
509
457
miniforge-version : latest
510
- use-mamba : true
458
+ use-mamba : ' true'
511
459
channels : conda-forge
512
- run-post : false
460
+ conda-remove-defaults : ' true'
461
+ run-post : ' false'
513
462
python-version : ' 3.12'
514
463
activate-environment : ' cleanup'
515
464
516
- - name : Remove defaults channel
517
- run : conda config --remove channels defaults
518
-
519
465
- name : Install anaconda-client
520
466
run : mamba install anaconda-client
521
467
0 commit comments