@@ -10,103 +10,101 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
env :
13
- PIP_ONLY_BINARY : numpy
13
+ PIP_ONLY_BINARY : " :all: "
14
14
# For cmake:
15
15
VERBOSE : 1
16
16
17
17
jobs :
18
18
standard :
19
- name : " 🐍 3.11 latest internals • ubuntu-latest • x64"
19
+ name : " 🐍 3.12 latest • ubuntu-latest • x64"
20
20
runs-on : ubuntu-latest
21
+ # Only runs when the 'python dev' label is selected
21
22
if : " contains(github.event.pull_request.labels.*.name, 'python dev')"
22
23
23
24
steps :
24
25
- uses : actions/checkout@v3
25
26
26
- - name : Setup Python 3.11
27
+ - name : Setup Python 3.12
27
28
uses : actions/setup-python@v4
28
29
with :
29
- python-version : " 3.11 -dev"
30
+ python-version : " 3.12 -dev"
30
31
31
- - name : Setup Boost (Linux)
32
- if : runner.os == 'Linux'
32
+ - name : Setup Boost
33
33
run : sudo apt-get install libboost-dev
34
34
35
35
- name : Update CMake
36
36
37
37
38
- - name : Prepare env
38
+ - name : Run pip installs
39
39
run : |
40
+ python -m pip install --upgrade pip
40
41
python -m pip install -r tests/requirements.txt
41
42
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
45
48
46
49
# First build - C++11 mode and inplace
47
50
- name : Configure C++11
48
51
run : >
49
- cmake -S . -B .
52
+ cmake -S . -B build11
50
53
-DPYBIND11_WERROR=ON
51
54
-DDOWNLOAD_CATCH=ON
52
55
-DDOWNLOAD_EIGEN=ON
53
56
-DCMAKE_CXX_STANDARD=11
57
+ -DCMAKE_BUILD_TYPE=Debug
54
58
55
59
- name : Build C++11
56
- run : cmake --build . -j 2
60
+ run : cmake --build build11 -j 2
57
61
58
62
- name : Python tests C++11
59
- run : cmake --build . --target pytest -j 2
63
+ run : cmake --build build11 --target pytest -j 2
60
64
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
63
67
64
68
- 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
69
70
70
71
# Second build - C++17 mode and in a build directory
71
72
- name : Configure C++17
72
73
run : >
73
- cmake -S . -B build2
74
+ cmake -S . -B build17
74
75
-DPYBIND11_WERROR=ON
75
76
-DDOWNLOAD_CATCH=ON
76
77
-DDOWNLOAD_EIGEN=ON
77
78
-DCMAKE_CXX_STANDARD=17
78
- ${{ matrix.args }}
79
- ${{ matrix.args2 }}
80
79
81
80
- name : Build
82
- run : cmake --build build2 -j 2
81
+ run : cmake --build build17 -j 2
83
82
84
83
- name : Python tests
85
- run : cmake --build build2 --target pytest
84
+ run : cmake --build build17 --target pytest
86
85
87
- - name : C++ tests
88
- run : cmake --build build2 --target cpptest
86
+ # - name: C++ tests
87
+ # run: cmake --build build17 --target cpptest
89
88
90
89
# Third build - C++17 mode with unstable ABI
91
90
- name : Configure (unstable ABI)
92
91
run : >
93
- cmake -S . -B build3
92
+ cmake -S . -B build17max
94
93
-DPYBIND11_WERROR=ON
95
94
-DDOWNLOAD_CATCH=ON
96
95
-DDOWNLOAD_EIGEN=ON
97
96
-DCMAKE_CXX_STANDARD=17
98
97
-DPYBIND11_INTERNALS_VERSION=10000000
99
98
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
100
- ${{ matrix.args }}
101
99
102
100
- name : Build (unstable ABI)
103
- run : cmake --build build3 -j 2
101
+ run : cmake --build build17max -j 2
104
102
105
103
- name : Python tests (unstable ABI)
106
- run : cmake --build build3 --target pytest
104
+ run : cmake --build build17max --target pytest
107
105
108
106
- name : Interface test
109
- run : cmake --build build3 --target test_cmake_build
107
+ run : cmake --build build17max --target test_cmake_build
110
108
111
109
# This makes sure the setup_helpers module can build packages using
112
110
# setuptools
0 commit comments