ci: run the tests in parallel

- the tests pass with ctest --parallel: no two tests use the same
  address or shm session
- locally, the 176 tests in test/ take 6 s with 8 jobs instead of 45 s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-03 14:02:57 +00:00
committed by Dennis Klein
parent 3077d1c0ab
commit 6692d1cf9c

View File

@@ -59,7 +59,7 @@ jobs:
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
sudo prlimit --pid $$ --memlock=unlimited:unlimited
ulimit -l
ctest --test-dir build --output-on-failure --no-tests=error
ctest --test-dir build --output-on-failure --no-tests=error --parallel "$(nproc)"
- name: Install
run: cmake --install build
@@ -160,7 +160,7 @@ jobs:
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
sudo prlimit --pid $$ --memlock=unlimited:unlimited
ulimit -l
ctest --test-dir build --output-on-failure --no-tests=error
ctest --test-dir build --output-on-failure --no-tests=error --parallel "$(nproc)"
static-analysis:
if: github.repository == 'FairRootGroup/FairMQ'