9595 run : brew install boost
9696
9797 - name : Update CMake
98- uses : jwlawson/actions-setup-cmake@v1.13
98+ uses : jwlawson/actions-setup-cmake@v1.14
9999
100100 - name : Cache wheels
101101 if : runner.os == 'macOS'
@@ -180,7 +180,6 @@ jobs:
180180 -DCMAKE_CXX_STANDARD=17
181181 -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT ${{runner.os == 'Windows' && '/GR /EHsc' || ''}}"
182182 -DPYBIND11_INTERNALS_VERSION=10000000
183- "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
184183 ${{ matrix.args }}
185184
186185 - name : Build (unstable ABI)
@@ -224,7 +223,7 @@ jobs:
224223 debug : ${{ matrix.python-debug }}
225224
226225 - name : Update CMake
227- uses : jwlawson/actions-setup-cmake@v1.13
226+ uses : jwlawson/actions-setup-cmake@v1.14
228227
229228 - name : Valgrind cache
230229 if : matrix.valgrind
@@ -492,7 +491,7 @@ jobs:
492491 run : python3 -m pip install --upgrade pip
493492
494493 - name : Update CMake
495- uses : jwlawson/actions-setup-cmake@v1.13
494+ uses : jwlawson/actions-setup-cmake@v1.14
496495
497496 - name : Configure
498497 shell : bash
@@ -516,6 +515,25 @@ jobs:
516515 - name : Interface test
517516 run : cmake --build build --target test_cmake_build
518517
518+ - name : Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
519+ if : matrix.gcc == '12'
520+ shell : bash
521+ run : >
522+ cmake -S . -B build_partial
523+ -DPYBIND11_WERROR=ON
524+ -DDOWNLOAD_CATCH=ON
525+ -DCMAKE_CXX_STANDARD=${{ matrix.std }}
526+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
527+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
528+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
529+
530+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
531+ if : matrix.gcc == '12'
532+ run : cmake --build build_partial -j 2
533+
534+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
535+ if : matrix.gcc == '12'
536+ run : cmake --build build_partial --target pytest
519537
520538 # Testing on ICC using the oneAPI apt repo
521539 icc :
@@ -786,7 +804,7 @@ jobs:
786804 architecture : x86
787805
788806 - name : Update CMake
789- uses : jwlawson/actions-setup-cmake@v1.13
807+ uses : jwlawson/actions-setup-cmake@v1.14
790808
791809 - name : Prepare MSVC
792810 uses : ilammy/msvc-dev-cmd@v1.12.1
@@ -840,7 +858,7 @@ jobs:
840858 architecture : x86
841859
842860 - name : Update CMake
843- uses : jwlawson/actions-setup-cmake@v1.13
861+ uses : jwlawson/actions-setup-cmake@v1.14
844862
845863 - name : Prepare MSVC
846864 uses : ilammy/msvc-dev-cmd@v1.12.1
@@ -892,7 +910,7 @@ jobs:
892910 python3 -m pip install -r tests/requirements.txt
893911
894912 - name : Update CMake
895- uses : jwlawson/actions-setup-cmake@v1.13
913+ uses : jwlawson/actions-setup-cmake@v1.14
896914
897915 - name : Configure C++20
898916 run : >
@@ -915,6 +933,22 @@ jobs:
915933 - name : Interface test C++20
916934 run : cmake --build build --target test_cmake_build
917935
936+ - name : Configure C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
937+ run : >
938+ cmake -S . -B build_partial
939+ -DPYBIND11_WERROR=ON
940+ -DDOWNLOAD_CATCH=ON
941+ -DDOWNLOAD_EIGEN=ON
942+ -DCMAKE_CXX_STANDARD=20
943+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
944+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
945+
946+ - name : Build C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
947+ run : cmake --build build_partial -j 2
948+
949+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
950+ run : cmake --build build_partial --target pytest
951+
918952 mingw :
919953 name : " 🐍 3 • windows-latest • ${{ matrix.sys }}"
920954 runs-on : windows-latest
@@ -1026,7 +1060,7 @@ jobs:
10261060 python-version : ${{ matrix.python }}
10271061
10281062 - name : Update CMake
1029- uses : jwlawson/actions-setup-cmake@v1.13
1063+ uses : jwlawson/actions-setup-cmake@v1.14
10301064
10311065 - name : Install ninja-build tool
10321066 uses : seanmiddleditch/gha-setup-ninja@v3
@@ -1097,7 +1131,7 @@ jobs:
10971131 run : clang++ --version
10981132
10991133 - name : Update CMake
1100- uses : jwlawson/actions-setup-cmake@v1.13
1134+ uses : jwlawson/actions-setup-cmake@v1.14
11011135
11021136 - name : Run pip installs
11031137 run : |
@@ -1133,5 +1167,24 @@ jobs:
11331167 - name : Interface test
11341168 run : cmake --build . --target test_cmake_build -j 2
11351169
1170+ - name : CMake Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1171+ run : >
1172+ cmake -S . -B build_partial
1173+ -DPYBIND11_WERROR=ON
1174+ -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1175+ -DDOWNLOAD_CATCH=ON
1176+ -DDOWNLOAD_EIGEN=ON
1177+ -DCMAKE_CXX_COMPILER=clang++
1178+ -DCMAKE_CXX_STANDARD=17
1179+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
1180+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
1181+ "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
1182+
1183+ - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1184+ run : cmake --build build_partial -j 2
1185+
1186+ - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1187+ run : cmake --build build_partial --target pytest -j 2
1188+
11361189 - name : Clean directory
11371190 run : git clean -fdx
0 commit comments