8383 run : brew install boost
8484
8585 - name : Update CMake
86- uses : jwlawson/actions-setup-cmake@v1.13
86+ uses : jwlawson/actions-setup-cmake@v1.14
8787
8888 - name : Cache wheels
8989 if : runner.os == 'macOS'
@@ -165,7 +165,6 @@ jobs:
165165 -DDOWNLOAD_EIGEN=ON
166166 -DCMAKE_CXX_STANDARD=17
167167 -DPYBIND11_INTERNALS_VERSION=10000000
168- "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
169168 ${{ matrix.args }}
170169
171170 - name : Build (unstable ABI)
@@ -209,7 +208,7 @@ jobs:
209208 debug : ${{ matrix.python-debug }}
210209
211210 - name : Update CMake
212- uses : jwlawson/actions-setup-cmake@v1.13
211+ uses : jwlawson/actions-setup-cmake@v1.14
213212
214213 - name : Valgrind cache
215214 if : matrix.valgrind
@@ -475,7 +474,7 @@ jobs:
475474 run : python3 -m pip install --upgrade pip
476475
477476 - name : Update CMake
478- uses : jwlawson/actions-setup-cmake@v1.13
477+ uses : jwlawson/actions-setup-cmake@v1.14
479478
480479 - name : Configure
481480 shell : bash
@@ -498,6 +497,24 @@ jobs:
498497 - name : Interface test
499498 run : cmake --build build --target test_cmake_build
500499
500+ - name : Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
501+ if : matrix.gcc == '12'
502+ shell : bash
503+ run : >
504+ cmake -S . -B build_partial
505+ -DPYBIND11_WERROR=ON
506+ -DDOWNLOAD_CATCH=ON
507+ -DCMAKE_CXX_STANDARD=${{ matrix.std }}
508+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
509+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
510+
511+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
512+ if : matrix.gcc == '12'
513+ run : cmake --build build_partial -j 2
514+
515+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
516+ if : matrix.gcc == '12'
517+ run : cmake --build build_partial --target pytest
501518
502519 # Testing on ICC using the oneAPI apt repo
503520 icc :
@@ -764,7 +781,7 @@ jobs:
764781 architecture : x86
765782
766783 - name : Update CMake
767- uses : jwlawson/actions-setup-cmake@v1.13
784+ uses : jwlawson/actions-setup-cmake@v1.14
768785
769786 - name : Prepare MSVC
770787 uses : ilammy/msvc-dev-cmd@v1.12.1
@@ -817,7 +834,7 @@ jobs:
817834 architecture : x86
818835
819836 - name : Update CMake
820- uses : jwlawson/actions-setup-cmake@v1.13
837+ uses : jwlawson/actions-setup-cmake@v1.14
821838
822839 - name : Prepare MSVC
823840 uses : ilammy/msvc-dev-cmd@v1.12.1
@@ -868,7 +885,7 @@ jobs:
868885 python3 -m pip install -r tests/requirements.txt
869886
870887 - name : Update CMake
871- uses : jwlawson/actions-setup-cmake@v1.13
888+ uses : jwlawson/actions-setup-cmake@v1.14
872889
873890 - name : Configure C++20
874891 run : >
@@ -890,6 +907,21 @@ jobs:
890907 - name : Interface test C++20
891908 run : cmake --build build --target test_cmake_build
892909
910+ - name : Configure C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
911+ run : >
912+ cmake -S . -B build_partial
913+ -DPYBIND11_WERROR=ON
914+ -DDOWNLOAD_CATCH=ON
915+ -DDOWNLOAD_EIGEN=ON
916+ -DCMAKE_CXX_STANDARD=20
917+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
918+
919+ - name : Build C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
920+ run : cmake --build build_partial -j 2
921+
922+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
923+ run : cmake --build build_partial --target pytest
924+
893925 mingw :
894926 name : " 🐍 3 • windows-latest • ${{ matrix.sys }}"
895927 runs-on : windows-latest
@@ -1001,7 +1033,7 @@ jobs:
10011033 python-version : ${{ matrix.python }}
10021034
10031035 - name : Update CMake
1004- uses : jwlawson/actions-setup-cmake@v1.13
1036+ uses : jwlawson/actions-setup-cmake@v1.14
10051037
10061038 - name : Install ninja-build tool
10071039 uses : seanmiddleditch/gha-setup-ninja@v3
@@ -1071,7 +1103,7 @@ jobs:
10711103 run : clang++ --version
10721104
10731105 - name : Update CMake
1074- uses : jwlawson/actions-setup-cmake@v1.13
1106+ uses : jwlawson/actions-setup-cmake@v1.14
10751107
10761108 - name : Run pip installs
10771109 run : |
@@ -1106,5 +1138,23 @@ jobs:
11061138 - name : Interface test
11071139 run : cmake --build . --target test_cmake_build -j 2
11081140
1141+ - name : CMake Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1142+ run : >
1143+ cmake -S . -B build_partial
1144+ -DPYBIND11_WERROR=ON
1145+ -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1146+ -DDOWNLOAD_CATCH=ON
1147+ -DDOWNLOAD_EIGEN=ON
1148+ -DCMAKE_CXX_COMPILER=clang++
1149+ -DCMAKE_CXX_STANDARD=17
1150+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
1151+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
1152+
1153+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1154+ run : cmake --build build_partial -j 2
1155+
1156+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1157+ run : cmake --build build_partial --target pytest -j 2
1158+
11091159 - name : Clean directory
11101160 run : git clean -fdx
0 commit comments