-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Bring CI back to all-working condition #5822
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
88c0191
Fix "🐍 3 • windows-latest • mingw64" job (apparently msys2/setup-msys…
rwgk 61d7577
Add `pytest.xfail("[TEST-GIL-SCOPED] macOS free-threading...)`
rwgk 25b4c33
Change env.SYS_IS_GIL_ENABLED constant to env.sys_is_gil_enabled func…
rwgk bb8a794
Change install_mingw64_only → extra_install
rwgk 13c1c14
Also xfail if macOS and PY_GIL_DISABLED, show SOABI
rwgk bd3900e
build-ios: brew upgrade|install cmake
rwgk bd75761
Revert "build-ios: brew upgrade|install cmake"
rwgk 0f5a29d
Disable build-ios job in tests-cibw.yml
rwgk e70ac7f
Remove macos_brew_install_llvm job because it started failing, to red…
rwgk 4de21d8
Fix iOS build step for cmake installation
henryiii 38e9fa7
Update cmake installation steps in CI workflow
henryiii 26496bb
Update .github/workflows/tests-cibw.yml
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 hidden or 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 |
|---|---|---|
|
|
@@ -1019,8 +1019,15 @@ jobs: | |
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - { sys: mingw64, env: x86_64 } | ||
| - { sys: mingw32, env: i686 } | ||
| - sys: mingw32 | ||
| env: i686 | ||
| extra_install: "" | ||
| - sys: mingw64 | ||
| env: x86_64 | ||
| extra_install: | | ||
| mingw-w64-x86_64-python-numpy | ||
| mingw-w64-x86_64-python-scipy | ||
| mingw-w64-x86_64-eigen3 | ||
| steps: | ||
| - uses: msys2/setup-msys2@v2 | ||
| with: | ||
|
|
@@ -1034,15 +1041,7 @@ jobs: | |
| mingw-w64-${{matrix.env}}-python-pytest | ||
| mingw-w64-${{matrix.env}}-boost | ||
| mingw-w64-${{matrix.env}}-catch | ||
|
|
||
| - uses: msys2/setup-msys2@v2 | ||
| if: matrix.sys == 'mingw64' | ||
| with: | ||
| msystem: ${{matrix.sys}} | ||
| install: >- | ||
| mingw-w64-${{matrix.env}}-python-numpy | ||
| mingw-w64-${{matrix.env}}-python-scipy | ||
| mingw-w64-${{matrix.env}}-eigen3 | ||
| ${{ matrix.extra_install }} | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
|
|
@@ -1189,91 +1188,3 @@ jobs: | |
|
|
||
| - name: Clean directory | ||
| run: git clean -fdx | ||
|
|
||
| macos_brew_install_llvm: | ||
| if: github.event.pull_request.draft == false | ||
| name: "macos-13 • brew install llvm" | ||
| runs-on: macos-13 | ||
|
|
||
| env: | ||
| # https://apple.stackexchange.com/questions/227026/how-to-install-recent-clang-with-homebrew | ||
| LDFLAGS: '-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib' | ||
|
|
||
| steps: | ||
| - name: Update PATH | ||
| run: echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH | ||
|
|
||
| - name: Show env | ||
| run: env | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Show Clang++ version before brew install llvm | ||
| run: clang++ --version | ||
|
|
||
| - name: brew install llvm | ||
| run: brew install llvm | ||
|
|
||
| - name: Show Clang++ version after brew install llvm | ||
| run: clang++ --version | ||
|
|
||
| - name: Update CMake | ||
| uses: jwlawson/[email protected] | ||
|
|
||
| - name: Run pip installs | ||
| run: | | ||
| python3 -m pip install --upgrade pip | ||
| python3 -m pip install -r tests/requirements.txt | ||
| python3 -m pip install numpy | ||
| python3 -m pip install scipy | ||
|
|
||
| - name: Show CMake version | ||
| run: cmake --version | ||
|
|
||
| - name: CMake Configure | ||
| run: > | ||
| cmake -S . -B . | ||
| -DPYBIND11_WERROR=ON | ||
| -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF | ||
| -DDOWNLOAD_CATCH=ON | ||
| -DDOWNLOAD_EIGEN=ON | ||
| -DCMAKE_CXX_COMPILER=clang++ | ||
| -DCMAKE_CXX_STANDARD=17 | ||
| -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") | ||
|
|
||
| - name: Build | ||
| run: cmake --build . -j 2 | ||
|
|
||
| - name: Python tests | ||
| run: cmake --build . --target pytest -j 2 | ||
|
|
||
| - name: C++ tests | ||
| run: cmake --build . --target cpptest -j 2 | ||
|
|
||
| - name: Interface test | ||
| run: cmake --build . --target test_cmake_build -j 2 | ||
|
|
||
| - name: Visibility test | ||
| run: cmake --build . --target test_cross_module_rtti -j 2 | ||
|
|
||
| - name: CMake Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE | ||
| run: > | ||
| cmake -S . -B build_partial | ||
| -DPYBIND11_WERROR=ON | ||
| -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF | ||
| -DDOWNLOAD_CATCH=ON | ||
| -DDOWNLOAD_EIGEN=ON | ||
| -DCMAKE_CXX_COMPILER=clang++ | ||
| -DCMAKE_CXX_STANDARD=17 | ||
| -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") | ||
| "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp" | ||
|
|
||
| - name: Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE | ||
| run: cmake --build build_partial -j 2 | ||
|
|
||
| - name: Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE | ||
| run: cmake --build build_partial --target pytest -j 2 | ||
|
|
||
| - name: Clean directory | ||
| run: git clean -fdx | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -42,7 +42,8 @@ jobs: | |
| submodules: true | ||
| fetch-depth: 0 | ||
|
|
||
| - run: brew upgrade cmake | ||
| # We have ot uninstall first because GH is now using a local tap to build cmake<4, iOS needs cmake>=4 | ||
| - run: brew uninstall cmake && brew install cmake | ||
|
|
||
| - uses: pypa/[email protected] | ||
| env: | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.