From 2b1068b5245a06e77c9fc07597833576abd05df4 Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer <49643115+sandro-elsweijer@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:22:51 +0200 Subject: [PATCH] Fix CI parallelity --- .github/workflows/tests_cmake_t8code_api.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests_cmake_t8code_api.yml b/.github/workflows/tests_cmake_t8code_api.yml index d96b5d0b33..9cae2757f2 100644 --- a/.github/workflows/tests_cmake_t8code_api.yml +++ b/.github/workflows/tests_cmake_t8code_api.yml @@ -101,8 +101,15 @@ jobs: run: cd build_fortran && ninja $MAKEFLAGS - name: ninja install run: cd build_fortran && ninja install $MAKEFLAGS - - name: ninja test - run: cd build_fortran && ninja test + - name: serial tests (if MPI is enabled) + run: cd build_fortran && ctest $MAKEFLAGS -R _serial + if: ${{ inputs.MPI == 'ON' }} + - name: parallel tests (if MPI is enabled) + run: cd build_fortran && ctest -R _parallel + if: ${{ inputs.MPI == 'ON' }} + - name: tests (if MPI is disabled) + run: cd build_fortran && ctest $MAKEFLAGS + if: ${{ inputs.MPI == 'OFF' }} - name: OnFailUploadLog if: failure() uses: actions/upload-artifact@v4