Skip to content

Commit 4bb3774

Browse files
committed
fix conda-forge workflow build matrices
1 parent 2f7315c commit 4bb3774

1 file changed

Lines changed: 31 additions & 9 deletions

File tree

.github/workflows/conda-package-cf.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
21+
include:
22+
- python: "3.10"
23+
numpy: "2.2"
24+
- python: "3.11"
25+
numpy: "2.3"
26+
- python: "3.12"
27+
numpy: "2.3"
28+
- python: "3.13"
29+
numpy: "2.3"
30+
- python: "3.14"
31+
numpy: "2.3"
2232
steps:
2333
- name: Cancel Previous Runs
2434
uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # 0.13.0
@@ -50,17 +60,17 @@ jobs:
5060
- name: Install conda-build
5161
run: conda install conda-build
5262

53-
- name: Build conda package
63+
- name: Build conda package with NumPy 2.x
5464
run: |
55-
CHANNELS="-c conda-forge --override-channels"
56-
VERSIONS="--python ${{ matrix.python }}"
57-
TEST="--no-test"
65+
CHANNELS=(-c conda-forge --override-channels)
66+
VERSIONS=(--python "${{ matrix.python }}" --numpy "${{ matrix.numpy }}")
67+
TEST=(--no-test)
5868
echo "CONDA_BLD=${CONDA}/conda-bld/linux-64" >> $GITHUB_ENV
5969
6070
conda build \
61-
$TEST \
62-
$VERSIONS \
63-
$CHANNELS \
71+
"${TEST[@]}" \
72+
"${VERSIONS[@]}" \
73+
"${CHANNELS[@]}" \
6474
conda-recipe-cf
6575
6676
- name: Upload artifact
@@ -76,6 +86,7 @@ jobs:
7686
strategy:
7787
matrix:
7888
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
89+
numpy: ['numpy">2"']
7990
experimental: [false]
8091
runner: [ubuntu-latest]
8192
continue-on-error: ${{ matrix.experimental }}
@@ -146,7 +157,17 @@ jobs:
146157

147158
strategy:
148159
matrix:
149-
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
160+
include:
161+
- python: "3.10"
162+
numpy: "2.2"
163+
- python: "3.11"
164+
numpy: "2.3"
165+
- python: "3.12"
166+
numpy: "2.3"
167+
- python: "3.13"
168+
numpy: "2.3"
169+
- python: "3.14"
170+
numpy: "2.3"
150171
env:
151172
conda-bld: C:\Miniconda\conda-bld\win-64\
152173
steps:
@@ -210,6 +231,7 @@ jobs:
210231
strategy:
211232
matrix:
212233
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
234+
numpy: ['numpy">2"']
213235
experimental: [false]
214236
runner: [windows-latest]
215237
continue-on-error: ${{ matrix.experimental }}

0 commit comments

Comments
 (0)