Skip to content

Commit 0aac514

Browse files
committed
Revert "Replace upstream.yml with new python312.yml"
This reverts commit 9a6b9b4.
1 parent d56e333 commit 0aac514

File tree

2 files changed

+112
-140
lines changed

2 files changed

+112
-140
lines changed

.github/workflows/python312.yml

Lines changed: 0 additions & 140 deletions
This file was deleted.

.github/workflows/upstream.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
2+
name: Upstream
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
8+
concurrency:
9+
group: upstream-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
env:
13+
PIP_ONLY_BINARY: numpy
14+
15+
jobs:
16+
standard:
17+
name: "🐍 3.11 latest internals • ubuntu-latest • x64"
18+
runs-on: ubuntu-latest
19+
if: "contains(github.event.pull_request.labels.*.name, 'python dev')"
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Setup Python 3.11
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.11-dev"
28+
29+
- name: Setup Boost (Linux)
30+
if: runner.os == 'Linux'
31+
run: sudo apt-get install libboost-dev
32+
33+
- name: Update CMake
34+
uses: jwlawson/[email protected]
35+
36+
- name: Prepare env
37+
run: |
38+
python -m pip install -r tests/requirements.txt
39+
40+
- name: Setup annotations on Linux
41+
if: runner.os == 'Linux'
42+
run: python -m pip install pytest-github-actions-annotate-failures
43+
44+
# First build - C++11 mode and inplace
45+
- name: Configure C++11
46+
run: >
47+
cmake -S . -B .
48+
-DPYBIND11_WERROR=ON
49+
-DDOWNLOAD_CATCH=ON
50+
-DDOWNLOAD_EIGEN=ON
51+
-DCMAKE_CXX_STANDARD=11
52+
53+
- name: Build C++11
54+
run: cmake --build . -j 2
55+
56+
- name: Python tests C++11
57+
run: cmake --build . --target pytest -j 2
58+
59+
- name: C++11 tests
60+
run: cmake --build . --target cpptest -j 2
61+
62+
- name: Interface test C++11
63+
run: cmake --build . --target test_cmake_build
64+
65+
- name: Clean directory
66+
run: git clean -fdx
67+
68+
# Second build - C++17 mode and in a build directory
69+
- name: Configure C++17
70+
run: >
71+
cmake -S . -B build2
72+
-DPYBIND11_WERROR=ON
73+
-DDOWNLOAD_CATCH=ON
74+
-DDOWNLOAD_EIGEN=ON
75+
-DCMAKE_CXX_STANDARD=17
76+
${{ matrix.args }}
77+
${{ matrix.args2 }}
78+
79+
- name: Build
80+
run: cmake --build build2 -j 2
81+
82+
- name: Python tests
83+
run: cmake --build build2 --target pytest
84+
85+
- name: C++ tests
86+
run: cmake --build build2 --target cpptest
87+
88+
# Third build - C++17 mode with unstable ABI
89+
- name: Configure (unstable ABI)
90+
run: >
91+
cmake -S . -B build3
92+
-DPYBIND11_WERROR=ON
93+
-DDOWNLOAD_CATCH=ON
94+
-DDOWNLOAD_EIGEN=ON
95+
-DCMAKE_CXX_STANDARD=17
96+
-DPYBIND11_INTERNALS_VERSION=10000000
97+
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
98+
${{ matrix.args }}
99+
100+
- name: Build (unstable ABI)
101+
run: cmake --build build3 -j 2
102+
103+
- name: Python tests (unstable ABI)
104+
run: cmake --build build3 --target pytest
105+
106+
- name: Interface test
107+
run: cmake --build build3 --target test_cmake_build
108+
109+
# This makes sure the setup_helpers module can build packages using
110+
# setuptools
111+
- name: Setuptools helpers test
112+
run: pytest tests/extra_setuptools

0 commit comments

Comments
 (0)