mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
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:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
|||||||
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
||||||
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
||||||
ulimit -l
|
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
|
- name: Install
|
||||||
run: cmake --install build
|
run: cmake --install build
|
||||||
@@ -160,7 +160,7 @@ jobs:
|
|||||||
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
# limit so it does not hit RLIMIT_MEMLOCK on the runner.
|
||||||
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
||||||
ulimit -l
|
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:
|
static-analysis:
|
||||||
if: github.repository == 'FairRootGroup/FairMQ'
|
if: github.repository == 'FairRootGroup/FairMQ'
|
||||||
|
|||||||
Reference in New Issue
Block a user