Skip to content

Commit 3d89f5a

Browse files
aaronj0vgvassilev
authored andcommitted
Skip Valgrind checks on OS X
1 parent e39d541 commit 3d89f5a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,9 @@ jobs:
10861086
python -m pip install numba
10871087
echo ::endgroup::
10881088
echo ::group::Run complete test suite
1089+
set -o pipefail
10891090
python -m pytest -sv | tee complete_testrun.log 2>&1
1091+
set +o pipefail
10901092
echo ::group::Crashing Test Logs
10911093
# See if we don't have a crash that went away
10921094
# Comment out all xfails but the ones that have a run=False condition.
@@ -1108,12 +1110,16 @@ jobs:
11081110
declare -i RETCODE=0
11091111
11101112
set -o pipefail
1111-
if [[ "${{ matrix.clang-runtime }}" == "17" || "${{ matrix.clang-runtime }}" == "18" ]] && [[ "${{ matrix.os }}" != "macos-14" ]]; then
1112-
echo "Valgrind reports true for clang-runtime 17 or 18, due to memory leaks with LLVM"
1113-
valgrind --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v || true
1113+
if [[ "${{ matrix.os }}" == macos-* ]]; then
1114+
echo "Skipping Valgrind checks on OS X"
11141115
else
1115-
echo "Running valgrind on passing tests"
1116-
valgrind --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v
1116+
if [[ "${{ matrix.clang-runtime }}" == "17" || "${{ matrix.clang-runtime }}" == "18" ]]; then
1117+
echo "Valgrind reports true for clang-runtime 17 or 18, due to memory leaks with LLVM"
1118+
valgrind --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v || true
1119+
else
1120+
echo "Running valgrind on passing tests"
1121+
valgrind --error-exitcode=1 --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -v
1122+
fi
11171123
fi
11181124
export RETCODE=+$?
11191125
echo ::endgroup::

0 commit comments

Comments
 (0)