2121
2222 strategy :
2323 matrix :
24- python : ["3.10", "3.11", "3.12", "3.13", "3.14"]
24+ include :
25+ - python : " 3.10"
26+ numpy : " 2.2"
27+ - python : " 3.11"
28+ numpy : " 2.3"
29+ - python : " 3.12"
30+ numpy : " 2.3"
31+ - python : " 3.13"
32+ numpy : " 2.3"
33+ - python : " 3.14"
34+ numpy : " 2.3"
2535
2636 steps :
2737 - name : Cancel Previous Runs
6676 - name : List base environment packages
6777 run : |
6878 conda list -n base
69-
79+
7080 - name : Store conda paths as envs
7181 shell : bash -el {0}
7282 run : |
7585 - name : Build conda package
7686 run : |
7787 CHANNELS=(-c https://software.repos.intel.com/python/conda -c conda-forge --override-channels)
78- VERSIONS=(--python "${{ matrix.python }}")
88+ VERSIONS=(--python "${{ matrix.python }}" --numpy "${{ matrix.numpy }}" )
7989 TEST=(--no-test)
8090
8191 conda build \
@@ -97,7 +107,17 @@ jobs:
97107 shell : cmd /C CALL {0}
98108 strategy :
99109 matrix :
100- python : ["3.10", "3.11", "3.12", "3.13", "3.14"]
110+ include :
111+ - python : " 3.10"
112+ numpy : " 2.2"
113+ - python : " 3.11"
114+ numpy : " 2.3"
115+ - python : " 3.12"
116+ numpy : " 2.3"
117+ - python : " 3.13"
118+ numpy : " 2.3"
119+ - python : " 3.14"
120+ numpy : " 2.3"
101121
102122 steps :
103123 - name : Cancel Previous Runs
@@ -144,7 +164,7 @@ jobs:
144164 conda list -n base
145165
146166 - name : Build conda package
147- run : conda build --no-test --python "${{ matrix.python }}" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
167+ run : conda build --no-test --python "${{ matrix.python }}" --numpy "${{ matrix.numpy }}" - c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
148168
149169 - name : Upload artifact
150170 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -154,22 +174,13 @@ jobs:
154174
155175 test_linux :
156176 needs : build_linux
157-
158- runs-on : ubuntu-latest
177+ runs-on : ubuntu-latest
159178
160179 strategy :
161180 matrix :
162- include :
163- - python : " 3.10"
164- numpy : " 2.2"
165- - python : " 3.11"
166- numpy : " 2.3"
167- - python : " 3.12"
168- numpy : " 2.3"
169- - python : " 3.13"
170- numpy : " 2.3"
171- - python : " 3.14"
172- numpy : " 2.3"
181+ python : ["3.10", "3.11", "3.12", "3.13", "3.14"]
182+ numpy : ['numpy">=2"']
183+ experimental : [false]
173184
174185 env :
175186 CHANNELS : -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
@@ -214,7 +225,7 @@ jobs:
214225 . "$CONDA/etc/profile.d/conda.sh"
215226 PACKAGE_VERSION="$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")"
216227 export PACKAGE_VERSION
217- conda create -n "${{ env.TEST_ENV_NAME }}" "${PACKAGE_NAME}=${PACKAGE_VERSION}" "python=${{ matrix.python }}" "numpy= ${{ matrix.numpy }}" -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels --only-deps --dry-run > lockfile
228+ conda create -n "${{ env.TEST_ENV_NAME }}" "${PACKAGE_NAME}=${PACKAGE_VERSION}" "python=${{ matrix.python }}" ${{ matrix.numpy }} -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels --only-deps --dry-run > lockfile
218229 cat lockfile
219230
220231 - name : Set pkgs_dirs
@@ -238,7 +249,7 @@ jobs:
238249 . "$CONDA/etc/profile.d/conda.sh"
239250 PACKAGE_VERSION="$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")"
240251 export PACKAGE_VERSION
241- conda create -n "${{ env.TEST_ENV_NAME }}" "${PACKAGE_NAME}=${PACKAGE_VERSION}" pytest "python=${{ matrix.python }}" "numpy= ${{ matrix.numpy }}" -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
252+ conda create -n "${{ env.TEST_ENV_NAME }}" "${PACKAGE_NAME}=${PACKAGE_VERSION}" pytest "python=${{ matrix.python }}" ${{ matrix.numpy }} -c "$GITHUB_WORKSPACE/channel" -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
242253 conda activate "${{ env.TEST_ENV_NAME }}"
243254
244255 # Test installed packages
@@ -252,22 +263,13 @@ jobs:
252263
253264 test_windows :
254265 needs : build_windows
255-
256- runs-on : windows-latest
266+ runs-on : windows-latest
257267
258268 strategy :
259269 matrix :
260- include :
261- - python : " 3.10"
262- numpy : " 2.2"
263- - python : " 3.11"
264- numpy : " 2.3"
265- - python : " 3.12"
266- numpy : " 2.3"
267- - python : " 3.13"
268- numpy : " 2.3"
269- - python : " 3.14"
270- numpy : " 2.3"
270+ python : ["3.10", "3.11", "3.12", "3.13", "3.14"]
271+ numpy : ['numpy">=2"']
272+ experimental : [false]
271273
272274 env :
273275 CHANNELS : -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
@@ -317,7 +319,7 @@ jobs:
317319 FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
318320 SET PACKAGE_VERSION=%%F
319321 )
320- conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} numpy= ${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
322+ conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} ${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
321323
322324 - name : Cache conda packages
323325 uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
@@ -343,7 +345,7 @@ jobs:
343345 SET PACKAGE_VERSION=%%F
344346 )
345347 SET "WORKAROUND_DEPENDENCIES=intel-openmp"
346- conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %WORKAROUND_DEPENDENCIES% pytest python=${{ matrix.python }} numpy= ${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
348+ conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %WORKAROUND_DEPENDENCIES% pytest python=${{ matrix.python }} ${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
347349 conda activate ${{ env.TEST_ENV_NAME }}
348350
349351 # Test installed packages
0 commit comments