Skip to content

Commit 6918c91

Browse files
committed
ci: remove and tighten a bit
1 parent cfcfe76 commit 6918c91

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -293,38 +293,31 @@ jobs:
293293
runs-on: ubuntu-latest
294294
strategy:
295295
fail-fast: false
296-
matrix:
297-
centos:
298-
- 7 # GCC 4.8
299-
- 8
300296

301-
name: "🐍 3 • CentOS ${{ matrix.centos }} • x64 with NVHPC (PGC)"
302-
container: "centos:${{ matrix.centos }}"
297+
name: "🐍 3 • PGI • x64"
298+
container: "centos:8"
303299

304300
steps:
305301
- uses: actions/checkout@v2
306302

307-
- name: Add Python 3
308-
run: yum update -y && yum install -y python3-devel gcc-c++ make git
303+
- name: Add Python 3 and a few requirements
304+
run: yum update -y && yum install -y python3-devel cmake make environment-modules
309305

310306
- name: Update pip
311307
run: python3 -m pip install --upgrade pip
312308

313-
- name: Install dependencies
309+
- name: Install Python dependencies
314310
run: python3 -m pip install cmake -r tests/requirements.txt --prefer-binary
315311

316312
- name: Install NVidia HPC SDK
317313
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
318314

319-
- name: Install modules
320-
run: yum -y install environment-modules
321-
322315
- name: Configure
323316
shell: bash
324317
run: |
325318
source /etc/profile.d/modules.sh
326319
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.7
327-
cmake -S . -B build -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=OFF -DDOWNLOAD_EIGEN=OFF -DCMAKE_CXX_STANDARD=11 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
320+
cmake -S . -B build -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=OFF -DDOWNLOAD_EIGEN=OFF -DCMAKE_CXX_STANDARD=14 -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
328321
329322
- name: Build
330323
run: cmake --build build -j 2

tests/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ include(CMakeParseArguments)
2424
# Usage:
2525
# pybind11_filter_tests(LISTNAME file1.cpp file2.cpp ... MESSAGE "")
2626
#
27-
function(PYBIND11_FILTER_TESTS LISTNAME)
27+
macro(PYBIND11_FILTER_TESTS LISTNAME)
2828
cmake_parse_arguments(ARG "" "MESSAGE" "" ${ARGN})
2929
set(PYBIND11_FILTER_TESTS_FOUND OFF)
3030
foreach(filename IN LISTS ARG_UNPARSED_ARGUMENTS)
31-
list(FIND ${LISTNAME} ${filename} FILE_FOUND)
31+
list(FIND ${LISTNAME} ${filename} _FILE_FOUND)
3232
if(FILE_FOUND GREATER -1)
33-
list(REMOVE_AT PYBIND11_TEST_FILES ${FILE_FOUND})
33+
list(REMOVE_AT ${LISTNAME} ${_FILE_FOUND})
3434
set(PYBIND11_FILTER_TESTS_FOUND ON)
3535
endif()
3636
endforeach()
3737
if(PYBIND11_FILTER_TESTS_FOUND AND ARG_MESSAGE)
3838
message(STATUS "${ARG_MESSAGE}")
3939
endif()
40-
endfunction()
40+
endmacro()
4141

4242
# New Python support
4343
if(DEFINED Python_EXECUTABLE)
@@ -129,6 +129,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "PGI")
129129
pybind11_filter_tests(
130130
PYBIND11_TEST_FILES test_exceptions.cpp test_smart_ptr.cpp test_virtual_functions.cpp MESSAGE
131131
"Skipping tests that do not support PGI compilers")
132+
message(STATUS "${PYBIND11_TEST_FILES}")
132133
endif()
133134

134135
string(REPLACE ".cpp" ".py" PYBIND11_PYTEST_FILES "${PYBIND11_TEST_FILES}")

0 commit comments

Comments
 (0)