From beb05b82d381f9344e724752c2fb61dc38da9a6d Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Tue, 3 Feb 2026 14:27:06 +0100 Subject: [PATCH] [ci] Run Cppyy tests in multithreaded mode --- .github/actions/Build_and_Test_cppyy/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/Build_and_Test_cppyy/action.yml b/.github/actions/Build_and_Test_cppyy/action.yml index b4c890cfd..28f340c56 100644 --- a/.github/actions/Build_and_Test_cppyy/action.yml +++ b/.github/actions/Build_and_Test_cppyy/action.yml @@ -82,13 +82,13 @@ runs: echo ::endgroup:: echo ::group::Run complete test suite set -o pipefail - python -m pytest -sv -ra | tee complete_testrun.log 2>&1 + python -m pytest -sv -ra -n ${{ env.ncpus }} | tee complete_testrun.log 2>&1 set +o pipefail echo ::group::Crashing Test Logs # See if we don't have a crash that went away # Comment out all xfails but the ones that have a run=False condition. find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \; - python -m pytest -n 1 -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true + python -m pytest -n ${{ env.ncpus }} -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true git checkout . echo ::endgroup:: echo ::group::XFAIL Test Logs @@ -96,7 +96,7 @@ runs: # avoid conditionally crashing xfails find . -name "*.py" -exec sed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\1@mark.skipif(condition=not \2/g' {} \; # See if we don't have an xfail that went away - python -m pytest --runxfail -sv -ra | tee test_xfailed.log 2>&1 || true + python -m pytest --runxfail -sv -ra -n ${{ env.ncpus }} | tee test_xfailed.log 2>&1 || true git checkout . echo ::endgroup:: echo ::group::Passing Test Logs @@ -122,7 +122,7 @@ runs: SUPPRESSION_FILE="../etc/${CLANG_INTERPRETER}${CLANG_VERSION}-valgrind.supp" fi export IS_VALGRIND=true - valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --gen-suppressions=all --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -sv -ra --ignore=test_leakcheck.py + valgrind --show-error-list=yes --error-exitcode=1 --track-origins=yes --gen-suppressions=all --suppressions="${SUPPRESSION_FILE}" --suppressions=../etc/valgrind-cppyy-cling.supp python -m pytest -m "not xfail" -sv -ra -n ${{ env.ncpus }} --ignore=test_leakcheck.py unset IS_VALGRIND fi export RETCODE=+$?