1313 # Follow oneAPI installation instruction for conda, since intel channel is not longer available
1414 # CHANNELS: '-c dppy/label/dev -c intel -c conda-forge --override-channels'
1515 CHANNELS : ' -c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels'
16+ CONDA_BUILD_INDEX_ENV_PY_VER : ' 3.12' # conda does not support python 3.13
1617 CONDA_BUILD_VERSION : ' 24.11.2'
1718 CONDA_INDEX_VERSION : ' 0.5.0'
1819 RERUN_TESTS_ON_FAILURE : ' true'
2829
2930 strategy :
3031 matrix :
31- python : ['3.9', '3.10', '3.11', '3.12']
32+ python : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
3233 os : [ubuntu-22.04, windows-2019]
3334
3435 permissions :
6162 use-mamba : ' true'
6263 channels : conda-forge
6364 conda-remove-defaults : ' true'
64- python-version : ${{ matrix.python }}
65+ python-version : ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER }}
6566 activate-environment : ' build'
6667
6768 # Sometimes `mamba install ...` fails due to slow download speed rate, so disable the check in mamba
@@ -107,7 +108,7 @@ jobs:
107108
108109 strategy :
109110 matrix :
110- python : ['3.9', '3.10', '3.11', '3.12']
111+ python : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
111112
112113 continue-on-error : true
113114
@@ -136,7 +137,7 @@ jobs:
136137 use-mamba : ' true'
137138 channels : conda-forge
138139 conda-remove-defaults : ' true'
139- python-version : ${{ matrix.python }}
140+ python-version : ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER }}
140141 activate-environment : ${{ env.TEST_ENV_NAME }}
141142
142143 - name : Install conda-index
@@ -158,8 +159,13 @@ jobs:
158159 echo PACKAGE_VERSION=${PACKAGE_VERSION}
159160 echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
160161
162+ # conda-index does not support python 3.13
163+ - name : Remove conda-index
164+ run : mamba remove conda-index
165+
161166 - name : Install dpnp
162- run : mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
167+ run : |
168+ mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
163169 env :
164170 TEST_CHANNELS : ' -c ${{ env.channel-path }} ${{ env.CHANNELS }}'
165171 MAMBA_NO_LOW_SPEED_LIMIT : 1
@@ -205,7 +211,7 @@ jobs:
205211
206212 strategy :
207213 matrix :
208- python : ['3.9', '3.10', '3.11', '3.12']
214+ python : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
209215
210216 continue-on-error : true
211217
@@ -244,7 +250,7 @@ jobs:
244250 use-mamba : ' true'
245251 channels : conda-forge
246252 conda-remove-defaults : ' true'
247- python-version : ${{ matrix.python }}
253+ python-version : ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER }}
248254 activate-environment : ${{ env.TEST_ENV_NAME }}
249255
250256 - name : Store conda paths as envs
@@ -279,6 +285,10 @@ jobs:
279285 echo PACKAGE_VERSION: %PACKAGE_VERSION%
280286 (echo PACKAGE_VERSION=%PACKAGE_VERSION%) >> %GITHUB_ENV%
281287
288+ # conda-index does not support python 3.13
289+ - name : Remove conda-index
290+ run : mamba remove conda-index
291+
282292 - name : Install dpnp
283293 run : |
284294 @echo on
@@ -331,7 +341,7 @@ jobs:
331341
332342 strategy :
333343 matrix :
334- python : ['3.9', '3.10', '3.11', '3.12']
344+ python : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
335345 os : [ubuntu-22.04, windows-2019]
336346
337347 runs-on : ${{ matrix.os }}
@@ -406,7 +416,7 @@ jobs:
406416 channels : conda-forge
407417 conda-remove-defaults : ' true'
408418 run-post : ' false'
409- python-version : ' 3.12 '
419+ python-version : ' 3.13 '
410420 activate-environment : ' cleanup'
411421
412422 - name : Install anaconda-client
0 commit comments