From d3b8a9d5fb94adcd5daa20fce9220a976d67f828 Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Fri, 13 Dec 2024 14:10:46 +0100 Subject: [PATCH] Allow MPI to run as root (this is fine inside a docker) --- .github/actions/run_tests/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/run_tests/action.yml b/.github/actions/run_tests/action.yml index a92d19077..af8b13446 100644 --- a/.github/actions/run_tests/action.yml +++ b/.github/actions/run_tests/action.yml @@ -7,8 +7,10 @@ runs: run: | ctest -j 2 --timeout 5 --output-junit tests.xml --output-on-failure shell: bash - working-directory: - ./build + working-directory: ./build + env: + OMPI_ALLOW_RUN_AS_ROOT: 1 + OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: success() || failure() # always run even if the previous step fails