diff options
author | Yannick Jadoul <yannick.jadoul@belgacom.net> | 2021-01-14 05:13:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 23:13:19 -0500 |
commit | f243450e89a57a67f3d67aa1e25868e8d4997d56 (patch) | |
tree | b5e26b65a0d5594e4e569306f8115981f62d4641 | |
parent | 5abce7fce2a6ef911959f7d9381537ddea588a91 (diff) | |
download | pybind11-f243450e89a57a67f3d67aa1e25868e8d4997d56.tar.gz |
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
-rw-r--r-- | .github/workflows/ci.yml | 45 | ||||
-rw-r--r-- | tools/pybind11Tools.cmake | 2 |
2 files changed, 45 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f1d4934..3fa9c4ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - 3.5 - 3.6 - 3.9 - - 3.10-dev + # - 3.10-dev # Re-enable once 3.10.0a5 is released - pypy2 - pypy3 @@ -165,6 +165,49 @@ jobs: 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 clang: runs-on: ubuntu-latest diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake index cdd19795..aee60db2 100644 --- a/tools/pybind11Tools.cmake +++ b/tools/pybind11Tools.cmake @@ -31,7 +31,7 @@ endif() # A user can set versions manually too 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 "") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") |