-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: support development releases of Python #3419
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c82bbaa
ci: support development releases of Python
henryiii ee1fb1b
fix: better PyPy support
henryiii 3dfb03c
fix: patch over a few more pypy issues
henryiii 80aac36
Try to patch
Skylion007 ad0e5ae
Properly follow pep667
Skylion007 2ffefc0
Fix typo
Skylion007 e47fe71
Whoops, 667 not in yet
Skylion007 2688297
For testing
Skylion007 305def1
More testing
Skylion007 533f0c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0f1c3e0
Try to backport
Skylion007 6f88788
Merge branch 'henryiii/ci/python-dev' of https://github.com/henryiii/…
Skylion007 52a2b24
Try to simplify fix
Skylion007 bfba3da
Nail down the fix
Skylion007 19cceb0
Try pypy workaround
Skylion007 863035f
Typo
Skylion007 7696353
one last typo
Skylion007 6dd395d
Replacing 0x03110000 with 0x030B0000
9e8428a
Merge branch 'master' of https://github.com/pybind/pybind11 into henr…
Skylion007 04b6107
Add TODO. Drop PyPy
Skylion007 e07514a
Fix typo
Skylion007 60cee13
Revert catch upgrade
Skylion007 0618bd5
fix: minor cleanup, try pypy again
henryiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
|
||
name: Upstream | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
concurrency: | ||
group: upstream-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PIP_ONLY_BINARY: numpy | ||
|
||
jobs: | ||
standard: | ||
name: "🐍 3.11 dev • ubuntu-latest • x64" | ||
runs-on: ubuntu-latest | ||
if: "contains(github.event.pull_request.labels.*.name, 'python dev')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.11-dev" | ||
|
||
- name: Setup Boost (Linux) | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get install libboost-dev | ||
|
||
- name: Update CMake | ||
uses: jwlawson/actions-setup-cmake@v1.11 | ||
|
||
- name: Prepare env | ||
run: | | ||
python -m pip install -r tests/requirements.txt | ||
|
||
- name: Setup annotations on Linux | ||
if: runner.os == 'Linux' | ||
run: python -m pip install pytest-github-actions-annotate-failures | ||
|
||
# First build - C++11 mode and inplace | ||
- name: Configure C++11 | ||
run: > | ||
cmake -S . -B . | ||
-DPYBIND11_WERROR=ON | ||
-DDOWNLOAD_CATCH=ON | ||
-DDOWNLOAD_EIGEN=ON | ||
-DCMAKE_CXX_STANDARD=11 | ||
|
||
- name: Build C++11 | ||
run: cmake --build . -j 2 | ||
|
||
- name: Python tests C++11 | ||
run: cmake --build . --target pytest -j 2 | ||
|
||
- name: C++11 tests | ||
run: cmake --build . --target cpptest -j 2 | ||
|
||
- name: Interface test C++11 | ||
run: cmake --build . --target test_cmake_build | ||
|
||
- name: Clean directory | ||
run: git clean -fdx | ||
|
||
# Second build - C++17 mode and in a build directory | ||
- name: Configure C++17 | ||
run: > | ||
cmake -S . -B build2 | ||
-DPYBIND11_WERROR=ON | ||
-DDOWNLOAD_CATCH=ON | ||
-DDOWNLOAD_EIGEN=ON | ||
-DCMAKE_CXX_STANDARD=17 | ||
${{ matrix.args }} | ||
${{ matrix.args2 }} | ||
|
||
- name: Build | ||
run: cmake --build build2 -j 2 | ||
|
||
- name: Python tests | ||
run: cmake --build build2 --target pytest | ||
|
||
- name: C++ tests | ||
run: cmake --build build2 --target cpptest | ||
|
||
# Third build - C++17 mode with unstable ABI | ||
- name: Configure (unstable ABI) | ||
run: > | ||
cmake -S . -B build3 | ||
-DPYBIND11_WERROR=ON | ||
-DDOWNLOAD_CATCH=ON | ||
-DDOWNLOAD_EIGEN=ON | ||
-DCMAKE_CXX_STANDARD=17 | ||
-DPYBIND11_INTERNALS_VERSION=10000000 | ||
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp" | ||
${{ matrix.args }} | ||
|
||
- name: Build (unstable ABI) | ||
run: cmake --build build3 -j 2 | ||
|
||
- name: Python tests (unstable ABI) | ||
run: cmake --build build3 --target pytest | ||
|
||
- name: Interface test | ||
run: cmake --build build2 --target test_cmake_build | ||
|
||
# This makes sure the setup_helpers module can build packages using | ||
# setuptools | ||
- name: Setuptools helpers test | ||
run: pytest tests/extra_setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will trigger for workflow dispatch. And I wanted it to run weekly. Can do in a followup PR.