82
82
run : brew install boost
83
83
84
84
- name : Update CMake
85
- uses : jwlawson/actions-setup-cmake@v1.13
85
+ uses : jwlawson/actions-setup-cmake@v1.14
86
86
87
87
- name : Cache wheels
88
88
if : runner.os == 'macOS'
@@ -164,7 +164,6 @@ jobs:
164
164
-DDOWNLOAD_EIGEN=ON
165
165
-DCMAKE_CXX_STANDARD=17
166
166
-DPYBIND11_INTERNALS_VERSION=10000000
167
- "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
168
167
${{ matrix.args }}
169
168
170
169
- name : Build (unstable ABI)
@@ -208,7 +207,7 @@ jobs:
208
207
debug : ${{ matrix.python-debug }}
209
208
210
209
- name : Update CMake
211
- uses : jwlawson/actions-setup-cmake@v1.13
210
+ uses : jwlawson/actions-setup-cmake@v1.14
212
211
213
212
- name : Valgrind cache
214
213
if : matrix.valgrind
@@ -474,7 +473,7 @@ jobs:
474
473
run : python3 -m pip install --upgrade pip
475
474
476
475
- name : Update CMake
477
- uses : jwlawson/actions-setup-cmake@v1.13
476
+ uses : jwlawson/actions-setup-cmake@v1.14
478
477
479
478
- name : Configure
480
479
shell : bash
@@ -497,6 +496,24 @@ jobs:
497
496
- name : Interface test
498
497
run : cmake --build build --target test_cmake_build
499
498
499
+ - name : Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
500
+ if : matrix.gcc == '12'
501
+ shell : bash
502
+ run : >
503
+ cmake -S . -B build_partial
504
+ -DPYBIND11_WERROR=ON
505
+ -DDOWNLOAD_CATCH=ON
506
+ -DCMAKE_CXX_STANDARD=${{ matrix.std }}
507
+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
508
+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
509
+
510
+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
511
+ if : matrix.gcc == '12'
512
+ run : cmake --build build_partial -j 2
513
+
514
+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
515
+ if : matrix.gcc == '12'
516
+ run : cmake --build build_partial --target pytest
500
517
501
518
# Testing on ICC using the oneAPI apt repo
502
519
icc :
@@ -763,7 +780,7 @@ jobs:
763
780
architecture : x86
764
781
765
782
- name : Update CMake
766
- uses : jwlawson/actions-setup-cmake@v1.13
783
+ uses : jwlawson/actions-setup-cmake@v1.14
767
784
768
785
- name : Prepare MSVC
769
786
@@ -816,7 +833,7 @@ jobs:
816
833
architecture : x86
817
834
818
835
- name : Update CMake
819
- uses : jwlawson/actions-setup-cmake@v1.13
836
+ uses : jwlawson/actions-setup-cmake@v1.14
820
837
821
838
- name : Prepare MSVC
822
839
@@ -867,7 +884,7 @@ jobs:
867
884
python3 -m pip install -r tests/requirements.txt
868
885
869
886
- name : Update CMake
870
- uses : jwlawson/actions-setup-cmake@v1.13
887
+ uses : jwlawson/actions-setup-cmake@v1.14
871
888
872
889
- name : Configure C++20
873
890
run : >
@@ -889,6 +906,21 @@ jobs:
889
906
- name : Interface test C++20
890
907
run : cmake --build build --target test_cmake_build
891
908
909
+ - name : Configure C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
910
+ run : >
911
+ cmake -S . -B build_partial
912
+ -DPYBIND11_WERROR=ON
913
+ -DDOWNLOAD_CATCH=ON
914
+ -DDOWNLOAD_EIGEN=ON
915
+ -DCMAKE_CXX_STANDARD=20
916
+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
917
+
918
+ - name : Build C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
919
+ run : cmake --build build_partial -j 2
920
+
921
+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
922
+ run : cmake --build build_partial --target pytest
923
+
892
924
mingw :
893
925
name : " 🐍 3 • windows-latest • ${{ matrix.sys }}"
894
926
runs-on : windows-latest
@@ -1000,7 +1032,7 @@ jobs:
1000
1032
python-version : ${{ matrix.python }}
1001
1033
1002
1034
- name : Update CMake
1003
- uses : jwlawson/actions-setup-cmake@v1.13
1035
+ uses : jwlawson/actions-setup-cmake@v1.14
1004
1036
1005
1037
- name : Install ninja-build tool
1006
1038
uses : seanmiddleditch/gha-setup-ninja@v3
@@ -1070,7 +1102,7 @@ jobs:
1070
1102
run : clang++ --version
1071
1103
1072
1104
- name : Update CMake
1073
- uses : jwlawson/actions-setup-cmake@v1.13
1105
+ uses : jwlawson/actions-setup-cmake@v1.14
1074
1106
1075
1107
- name : Run pip installs
1076
1108
run : |
@@ -1105,5 +1137,23 @@ jobs:
1105
1137
- name : Interface test
1106
1138
run : cmake --build . --target test_cmake_build -j 2
1107
1139
1140
+ - name : CMake Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1141
+ run : >
1142
+ cmake -S . -B build_partial
1143
+ -DPYBIND11_WERROR=ON
1144
+ -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1145
+ -DDOWNLOAD_CATCH=ON
1146
+ -DDOWNLOAD_EIGEN=ON
1147
+ -DCMAKE_CXX_COMPILER=clang++
1148
+ -DCMAKE_CXX_STANDARD=17
1149
+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
1150
+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
1151
+
1152
+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1153
+ run : cmake --build build_partial -j 2
1154
+
1155
+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1156
+ run : cmake --build build_partial --target pytest -j 2
1157
+
1108
1158
- name : Clean directory
1109
1159
run : git clean -fdx
0 commit comments