ci: drop pypy2 linux, PGI 20.7, add Python 10 dev (#2724)

* ci: drop pypy2 linux, add Python 10 dev

* ci: fix mistake

* ci: commented-out PGI 20.11, drop 20.7
This commit is contained in:
Henry Schreiner 2020-12-15 21:07:41 -05:00 committed by GitHub
parent 5469c238c8
commit 499fcd5447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 54 deletions

View File

@ -21,10 +21,8 @@ jobs:
- 2.7 - 2.7
- 3.5 - 3.5
- 3.6 - 3.6
- 3.7
- 3.8
- 3.9 - 3.9
# - 3.10.0-alpha.1 - need next release for pybind11 fix - 3.10-dev
- pypy2 - pypy2
- pypy3 - pypy3
@ -44,10 +42,6 @@ jobs:
python: 3.6 python: 3.6
args: > args: >
-DPYBIND11_FINDPYTHON=ON -DPYBIND11_FINDPYTHON=ON
- runs-on: ubuntu-latest
python: 3.8
args: >
-DPYBIND11_FINDPYTHON=ON
# These items will be removed from the build matrix, keys must match. # These items will be removed from the build matrix, keys must match.
exclude: exclude:
@ -57,11 +51,9 @@ jobs:
- runs-on: windows-latest - runs-on: windows-latest
python: pypy3 python: pypy3
# Let's drop a few macOS runs since that tends to be 2.7 or 3.8+ # TODO: PyPy2 7.3.3 segfaults, while 7.3.2 was fine.
- runs-on: macos-latest - runs-on: ubuntu-latest
python: 3.6 python: pypy2
- runs-on: macos-latest
python: 3.7
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}" name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
runs-on: ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }}
@ -117,7 +109,7 @@ jobs:
- name: C++11 tests - name: C++11 tests
# TODO: Figure out how to load the DLL on Python 3.8+ # TODO: Figure out how to load the DLL on Python 3.8+
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9))" if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))"
run: cmake --build . --target cpptest -j 2 run: cmake --build . --target cpptest -j 2
- name: Interface test C++11 - name: Interface test C++11
@ -145,7 +137,7 @@ jobs:
- name: C++ tests - name: C++ tests
# TODO: Figure out how to load the DLL on Python 3.8+ # TODO: Figure out how to load the DLL on Python 3.8+
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9))" if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))"
run: cmake --build build2 --target cpptest run: cmake --build build2 --target cpptest
- name: Interface test - name: Interface test
@ -250,44 +242,48 @@ jobs:
run: cmake --build build --target pytest run: cmake --build build --target pytest
# Testing CentOS 8 + PGI compilers # TODO: Internal compiler error - report to NVidia
centos-nvhpc8: # # Testing CentOS 8 + PGI compilers
runs-on: ubuntu-latest # centos-nvhpc8:
name: "🐍 3 • CentOS8 / PGI 20.7 • x64" # runs-on: ubuntu-latest
container: centos:8 # name: "🐍 3 • CentOS8 / PGI 20.11 • x64"
# container: centos:8
steps: #
- uses: actions/checkout@v2 # steps:
# - uses: actions/checkout@v2
- name: Add Python 3 and a few requirements #
run: yum update -y && yum install -y git python3-devel python3-numpy python3-pytest make environment-modules # - name: Add Python 3 and a few requirements
# run: yum update -y && yum install -y git python3-devel python3-numpy python3-pytest make environment-modules
- name: Install CMake with pip #
run: | # - name: Install CMake with pip
python3 -m pip install --upgrade pip # run: |
python3 -m pip install cmake --prefer-binary # python3 -m pip install --upgrade pip
# python3 -m pip install cmake --prefer-binary
- name: Install NVidia HPC SDK #
run: yum -y install https://developer.download.nvidia.com/hpc-sdk/nvhpc-20-7-20.7-1.x86_64.rpm https://developer.download.nvidia.com/hpc-sdk/nvhpc-2020-20.7-1.x86_64.rpm # - name: Install NVidia HPC SDK
# run: >
- name: Configure # yum -y install
shell: bash # https://developer.download.nvidia.com/hpc-sdk/20.11/nvhpc-20-11-20.11-1.x86_64.rpm
run: | # https://developer.download.nvidia.com/hpc-sdk/20.11/nvhpc-2020-20.11-1.x86_64.rpm
source /etc/profile.d/modules.sh #
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.7 # - name: Configure
cmake -S . -B build -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_STANDARD=14 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") # shell: bash
# run: |
- name: Build # source /etc/profile.d/modules.sh
run: cmake --build build -j 2 --verbose # module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.11
# cmake -S . -B build -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_STANDARD=14 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
- name: Python tests #
run: cmake --build build --target pytest # - name: Build
# run: cmake --build build -j 2 --verbose
- name: C++ tests #
run: cmake --build build --target cpptest # - name: Python tests
# run: cmake --build build --target pytest
- name: Interface test #
run: cmake --build build --target test_cmake_build # - name: C++ tests
# run: cmake --build build --target cpptest
#
# - name: Interface test
# run: cmake --build build --target test_cmake_build
# Testing on CentOS 7 + PGI compilers, which seems to require more workarounds # Testing on CentOS 7 + PGI compilers, which seems to require more workarounds

View File

@ -135,9 +135,9 @@ Supported compilers
3. Microsoft Visual Studio 2015 Update 3 or newer 3. Microsoft Visual Studio 2015 Update 3 or newer
4. Intel C++ compiler 18 or newer 4. Intel C++ compiler 18 or newer
(`possible issue <https://github.com/pybind/pybind11/pull/2573>`_ on 20.2) (`possible issue <https://github.com/pybind/pybind11/pull/2573>`_ on 20.2)
5. Cygwin/GCC (tested on 2.5.1) 5. Cygwin/GCC (previously tested on 2.5.1)
6. NVCC (CUDA 11.0 tested) 6. NVCC (CUDA 11.0 tested)
7. NVIDIA PGI (20.7 and 20.9 tested) 7. NVIDIA PGI (20.9 tested)
About About
----- -----