File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 39
39
# - 'pypy-3.8'
40
40
# - 'pypy-3.9'
41
41
# - 'pypy-3.10'
42
- use_numpy_2 :
43
- - false
44
- - true
42
+ numpy_version :
43
+ - ' 1.x '
44
+ - ' 2.x '
45
45
46
46
# Items in here will either be added to the build matrix (if not
47
47
# present), or add new keys to an existing matrix element if all the
69
69
# - runs-on: windows-2019
70
70
# python: '2.7'
71
71
72
- name : " 🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
72
+ name : " 🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 • NumPy ${{ matrix.numpy_version }} • ${{ matrix.args }}"
73
73
runs-on : ${{ matrix.runs-on }}
74
74
75
75
steps :
@@ -108,7 +108,7 @@ jobs:
108
108
python -m pip install -r tests/requirements.txt
109
109
110
110
- name : Install NumPy >= 2
111
- if : matrix.use_numpy_2
111
+ if : matrix.numpy_version == '2.x'
112
112
run : pip install 'numpy>=2.0.0b1'
113
113
114
114
- name : Setup annotations on Linux
@@ -124,7 +124,7 @@ jobs:
124
124
-DPYBIND11_WERROR=ON
125
125
-DPYBIND11_DISABLE_HANDLE_TYPE_NAME_DEFAULT_IMPLEMENTATION=ON
126
126
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=ON
127
- -DPYBIND11_NUMPY_1_ONLY=ON
127
+ -DPYBIND11_NUMPY_1_ONLY=${{ matrix.numpy_version == '1.x' && "ON" || "OFF" }}
128
128
-DDOWNLOAD_CATCH=ON
129
129
-DDOWNLOAD_EIGEN=ON
130
130
-DCMAKE_CXX_STANDARD=11
You can’t perform that action at this time.
0 commit comments