mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
ci: disable builds for 3.10.0a4, and enable a nightly 3.10-dev build (#2792)
* Disable builds for 3.10.0a4, and enable a nightly 3.10-dev build * Fix job name * Remove deadsnakes job for now * Add deadsnakes jobs * There's no deadsnakes 2.7 * Add 3.10 to versions to be discovered by legacy FindPython, and fix debug input to deadsnakes/action * Try out branch with fix * Update to deadsnakes/action@v2.1.1
This commit is contained in:
parent
5abce7fce2
commit
f243450e89
45
.github/workflows/ci.yml
vendored
45
.github/workflows/ci.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- 3.5
|
- 3.5
|
||||||
- 3.6
|
- 3.6
|
||||||
- 3.9
|
- 3.9
|
||||||
- 3.10-dev
|
# - 3.10-dev # Re-enable once 3.10.0a5 is released
|
||||||
- pypy2
|
- pypy2
|
||||||
- pypy3
|
- pypy3
|
||||||
|
|
||||||
@ -165,6 +165,49 @@ jobs:
|
|||||||
run: pytest tests/extra_setuptools
|
run: pytest tests/extra_setuptools
|
||||||
|
|
||||||
|
|
||||||
|
deadsnakes:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python:
|
||||||
|
- version: 3.9
|
||||||
|
debug: true
|
||||||
|
- version: 3.10-dev
|
||||||
|
debug: false
|
||||||
|
|
||||||
|
name: "🐍 ${{ matrix.python.version }}${{ matrix.python.debug && ' (debug)' || '' }} • deadsnakes • x64"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Python ${{ matrix.python.version }} (deadsnakes)
|
||||||
|
uses: deadsnakes/action@v2.1.1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python.version }}
|
||||||
|
debug: ${{ matrix.python.debug }}
|
||||||
|
|
||||||
|
- name: Prepare env
|
||||||
|
run: python -m pip install -r tests/requirements.txt --prefer-binary
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: >
|
||||||
|
cmake -S . -B build
|
||||||
|
-DPYBIND11_WERROR=ON
|
||||||
|
-DDOWNLOAD_CATCH=ON
|
||||||
|
-DDOWNLOAD_EIGEN=ON
|
||||||
|
-DCMAKE_CXX_STANDARD=17
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build build -j 2
|
||||||
|
|
||||||
|
- name: Python tests
|
||||||
|
run: cmake --build build --target pytest
|
||||||
|
|
||||||
|
- name: C++ tests
|
||||||
|
run: cmake --build build --target cpptest
|
||||||
|
|
||||||
|
|
||||||
# Testing on clang using the excellent silkeh clang docker images
|
# Testing on clang using the excellent silkeh clang docker images
|
||||||
clang:
|
clang:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -31,7 +31,7 @@ endif()
|
|||||||
|
|
||||||
# A user can set versions manually too
|
# A user can set versions manually too
|
||||||
set(Python_ADDITIONAL_VERSIONS
|
set(Python_ADDITIONAL_VERSIONS
|
||||||
"3.9;3.8;3.7;3.6;3.5;3.4"
|
"3.10;3.9;3.8;3.7;3.6;3.5;3.4"
|
||||||
CACHE INTERNAL "")
|
CACHE INTERNAL "")
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
Loading…
Reference in New Issue
Block a user