Skip to content

Commit c427632

Browse files
fixup!
1 parent a9494d3 commit c427632

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
# - 'pypy-3.8'
4040
# - 'pypy-3.9'
4141
# - 'pypy-3.10'
42-
use_numpy_2:
43-
- false
44-
- true
42+
numpy_version:
43+
- '1.x'
44+
- '2.x'
4545

4646
# Items in here will either be added to the build matrix (if not
4747
# present), or add new keys to an existing matrix element if all the
@@ -69,7 +69,7 @@ jobs:
6969
# - runs-on: windows-2019
7070
# python: '2.7'
7171

72-
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
72+
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 • NumPy ${{ matrix.numpy_version }} • ${{ matrix.args }}"
7373
runs-on: ${{ matrix.runs-on }}
7474

7575
steps:
@@ -108,7 +108,7 @@ jobs:
108108
python -m pip install -r tests/requirements.txt
109109
110110
- name: Install NumPy >= 2
111-
if: matrix.use_numpy_2
111+
if: matrix.numpy_version == '2.x'
112112
run: pip install 'numpy>=2.0.0b1'
113113

114114
- name: Setup annotations on Linux
@@ -124,7 +124,7 @@ jobs:
124124
-DPYBIND11_WERROR=ON
125125
-DPYBIND11_DISABLE_HANDLE_TYPE_NAME_DEFAULT_IMPLEMENTATION=ON
126126
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=ON
127-
-DPYBIND11_NUMPY_1_ONLY=ON
127+
-DPYBIND11_NUMPY_1_ONLY=${{ matrix.numpy_version == '1.x' && "ON" || "OFF" }}
128128
-DDOWNLOAD_CATCH=ON
129129
-DDOWNLOAD_EIGEN=ON
130130
-DCMAKE_CXX_STANDARD=11

0 commit comments

Comments
 (0)