Skip to content

Disable builds for 3.10.0a4, and enable a nightly 3.10-dev build #2792

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 8 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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/[email protected]
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
Expand Down
2 changes: 1 addition & 1 deletion tools/pybind11Tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down