@@ -10,103 +10,101 @@ concurrency:
1010 cancel-in-progress : true
1111
1212env :
13- PIP_ONLY_BINARY : numpy
13+ PIP_ONLY_BINARY : " :all: "
1414 # For cmake:
1515 VERBOSE : 1
1616
1717jobs :
1818 standard :
19- name : " 🐍 3.11 latest internals • ubuntu-latest • x64"
19+ name : " 🐍 3.12 latest • ubuntu-latest • x64"
2020 runs-on : ubuntu-latest
21+ # Only runs when the 'python dev' label is selected
2122 if : " contains(github.event.pull_request.labels.*.name, 'python dev')"
2223
2324 steps :
2425 - uses : actions/checkout@v3
2526
26- - name : Setup Python 3.11
27+ - name : Setup Python 3.12
2728 uses : actions/setup-python@v4
2829 with :
29- python-version : " 3.11 -dev"
30+ python-version : " 3.12 -dev"
3031
31- - name : Setup Boost (Linux)
32- if : runner.os == 'Linux'
32+ - name : Setup Boost
3333 run : sudo apt-get install libboost-dev
3434
3535 - name : Update CMake
3636 uses : jwlawson/actions-setup-cmake@v1.13
3737
38- - name : Prepare env
38+ - name : Run pip installs
3939 run : |
40+ python -m pip install --upgrade pip
4041 python -m pip install -r tests/requirements.txt
4142
42- - name : Setup annotations on Linux
43- if : runner.os == 'Linux'
44- run : python -m pip install pytest-github-actions-annotate-failures
43+ - name : Show platform info
44+ run : |
45+ python -m platform
46+ cmake --version
47+ pip list
4548
4649 # First build - C++11 mode and inplace
4750 - name : Configure C++11
4851 run : >
49- cmake -S . -B .
52+ cmake -S . -B build11
5053 -DPYBIND11_WERROR=ON
5154 -DDOWNLOAD_CATCH=ON
5255 -DDOWNLOAD_EIGEN=ON
5356 -DCMAKE_CXX_STANDARD=11
57+ -DCMAKE_BUILD_TYPE=Debug
5458
5559 - name : Build C++11
56- run : cmake --build . -j 2
60+ run : cmake --build build11 -j 2
5761
5862 - name : Python tests C++11
59- run : cmake --build . --target pytest -j 2
63+ run : cmake --build build11 --target pytest -j 2
6064
61- - name : C++11 tests
62- run : cmake --build . --target cpptest -j 2
65+ # - name: C++11 tests
66+ # run: cmake --build build11 --target cpptest -j 2
6367
6468 - name : Interface test C++11
65- run : cmake --build . --target test_cmake_build
66-
67- - name : Clean directory
68- run : git clean -fdx
69+ run : cmake --build build11 --target test_cmake_build
6970
7071 # Second build - C++17 mode and in a build directory
7172 - name : Configure C++17
7273 run : >
73- cmake -S . -B build2
74+ cmake -S . -B build17
7475 -DPYBIND11_WERROR=ON
7576 -DDOWNLOAD_CATCH=ON
7677 -DDOWNLOAD_EIGEN=ON
7778 -DCMAKE_CXX_STANDARD=17
78- ${{ matrix.args }}
79- ${{ matrix.args2 }}
8079
8180 - name : Build
82- run : cmake --build build2 -j 2
81+ run : cmake --build build17 -j 2
8382
8483 - name : Python tests
85- run : cmake --build build2 --target pytest
84+ run : cmake --build build17 --target pytest
8685
87- - name : C++ tests
88- run : cmake --build build2 --target cpptest
86+ # - name: C++ tests
87+ # run: cmake --build build17 --target cpptest
8988
9089 # Third build - C++17 mode with unstable ABI
9190 - name : Configure (unstable ABI)
9291 run : >
93- cmake -S . -B build3
92+ cmake -S . -B build17max
9493 -DPYBIND11_WERROR=ON
9594 -DDOWNLOAD_CATCH=ON
9695 -DDOWNLOAD_EIGEN=ON
9796 -DCMAKE_CXX_STANDARD=17
9897 -DPYBIND11_INTERNALS_VERSION=10000000
9998 "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
100- ${{ matrix.args }}
10199
102100 - name : Build (unstable ABI)
103- run : cmake --build build3 -j 2
101+ run : cmake --build build17max -j 2
104102
105103 - name : Python tests (unstable ABI)
106- run : cmake --build build3 --target pytest
104+ run : cmake --build build17max --target pytest
107105
108106 - name : Interface test
109- run : cmake --build build3 --target test_cmake_build
107+ run : cmake --build build17max --target test_cmake_build
110108
111109 # This makes sure the setup_helpers module can build packages using
112110 # setuptools
0 commit comments