diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d5222f8b68..efe4b78a5df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,14 @@ jobs: matrix: runs-on: [ubuntu-latest, windows-latest, macos-latest] python: - - 2.7 - - 3.5 - - 3.6 - - 3.9 - - 3.10-dev - - pypy2 - - pypy3 + - '2.7' + - '3.5' + - '3.6' + - '3.9' + - '3.10' + - '3.11-dev' + - pypy-3.6 + - pypy-3.7 # Items in here will either be added to the build matrix (if not # present), or add new keys to an existing matrix element if all the @@ -43,18 +44,6 @@ jobs: args: > -DPYBIND11_FINDPYTHON=ON - # These items will be removed from the build matrix, keys must match. - exclude: - # Currently 32bit only, and we build 64bit - - runs-on: windows-latest - python: pypy2 - - runs-on: windows-latest - python: pypy3 - - # TODO: PyPy2 7.3.3 segfaults, while 7.3.2 was fine. - - runs-on: ubuntu-latest - python: pypy2 - name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}" runs-on: ${{ matrix.runs-on }} @@ -113,7 +102,7 @@ jobs: - name: C++11 tests # TODO: Figure out how to load the DLL on Python 3.8+ - if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))" + if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10' || matrix.python == '3.11-dev'))" run: cmake --build . --target cpptest -j 2 - name: Interface test C++11 @@ -141,7 +130,7 @@ jobs: - name: C++ tests # TODO: Figure out how to load the DLL on Python 3.8+ - if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))" + if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10' || matrix.python == '3.11-dev'))" run: cmake --build build2 --target cpptest # Third build - C++17 mode with unstable ABI @@ -195,7 +184,7 @@ jobs: - python-version: 3.9 python-debug: true valgrind: true - - python-version: 3.10-dev + - python-version: 3.11-dev python-debug: false name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64" @@ -735,7 +724,7 @@ jobs: - 3.7 - 3.8 - 3.9 - - pypy3 + - pypy-3.7 # TODO: fix hang on pypy2 include: diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake index cc5ca21ca3d..026069c73d4 100644 --- a/tools/pybind11Tools.cmake +++ b/tools/pybind11Tools.cmake @@ -38,7 +38,7 @@ endif() # A user can set versions manually too set(Python_ADDITIONAL_VERSIONS - "3.10;3.9;3.8;3.7;3.6;3.5;3.4" + "3.11;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}")