Skip to content

Commit

Permalink
Uncommenting Centos7 block (PR #3691 showed that it is working again).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Feb 6, 2022
1 parent 39c1c9f commit 2b8b06e
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,53 +373,53 @@ jobs:
# run: cmake --build build --target test_cmake_build


# # Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
# centos-nvhpc7:
# runs-on: ubuntu-latest
# name: "🐍 3 • CentOS7 / PGI 20.9 • x64"
# container: centos:7
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Add Python 3 and a few requirements
# run: yum update -y && yum install -y epel-release && yum install -y git python3-devel make environment-modules cmake3
#
# - name: Install NVidia HPC SDK
# run: yum -y install https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-20-9-20.9-1.x86_64.rpm https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-2020-20.9-1.x86_64.rpm
#
# # On CentOS 7, we have to filter a few tests (compiler internal error)
# # and allow deeper template recursion (not needed on CentOS 8 with a newer
# # standard library). On some systems, you many need further workarounds:
# # https://github.com/pybind/pybind11/pull/2475
# - name: Configure
# shell: bash
# run: |
# source /etc/profile.d/modules.sh
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.9
# cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
# -DCMAKE_CXX_STANDARD=11 \
# -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
# -DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
# -DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp"
#
# # Building before installing Pip should produce a warning but not an error
# - name: Build
# run: cmake3 --build build -j 2 --verbose
#
# - name: Install CMake with pip
# run: |
# python3 -m pip install --upgrade pip
# python3 -m pip install pytest
#
# - name: Python tests
# run: cmake3 --build build --target pytest
#
# - name: C++ tests
# run: cmake3 --build build --target cpptest
#
# - name: Interface test
# run: cmake3 --build build --target test_cmake_build
# Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
centos-nvhpc7:
runs-on: ubuntu-latest
name: "🐍 3 • CentOS7 / PGI 20.9 • x64"
container: centos:7

steps:
- uses: actions/checkout@v2

- name: Add Python 3 and a few requirements
run: yum update -y && yum install -y epel-release && yum install -y git python3-devel make environment-modules cmake3

- name: Install NVidia HPC SDK
run: yum -y install https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-20-9-20.9-1.x86_64.rpm https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-2020-20.9-1.x86_64.rpm

# On CentOS 7, we have to filter a few tests (compiler internal error)
# and allow deeper template recursion (not needed on CentOS 8 with a newer
# standard library). On some systems, you many need further workarounds:
# https://github.com/pybind/pybind11/pull/2475
- name: Configure
shell: bash
run: |
source /etc/profile.d/modules.sh
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.9
cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
-DCMAKE_CXX_STANDARD=11 \
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
-DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp"
# Building before installing Pip should produce a warning but not an error
- name: Build
run: cmake3 --build build -j 2 --verbose

- name: Install CMake with pip
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
- name: Python tests
run: cmake3 --build build --target pytest

- name: C++ tests
run: cmake3 --build build --target cpptest

- name: Interface test
run: cmake3 --build build --target test_cmake_build


# Testing on GCC using the GCC docker images (only recent images supported)
Expand Down

0 comments on commit 2b8b06e

Please sign in to comment.