From 6cac9dcbf4077a1491c59d2bf450f4979a46400f Mon Sep 17 00:00:00 2001 From: "G. Bomarito" Date: Mon, 23 Sep 2024 14:22:40 -0400 Subject: [PATCH] adding debug statements to test runner --- .github/workflows/tests.yml | 4 ---- tests/.run_tests.sh | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 32ea3e18..77c7f28c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,10 +40,6 @@ jobs: run: | ./.build_bingocpp.sh - - name: Test with just pytest - run: | - pytest tests --cov=bingo --cov-report=term-missing --cov-append - - name: Test with pytest run: | tests/.run_tests.sh diff --git a/tests/.run_tests.sh b/tests/.run_tests.sh index 3f9a9d1f..98f61f08 100755 --- a/tests/.run_tests.sh +++ b/tests/.run_tests.sh @@ -1,9 +1,11 @@ #!/usr/bin/env bash set -e - +echo "Finding MPI install" MPI_EXEC=$(python -c "import mpi4py;import os;filename = next(iter(mpi4py.get_config().items()))[1];print(os.path.dirname(filename)+'/mpiexec');") +echo $MPI_EXEC RUN_MODE=${1-"coverage"} +echo $RUN_MODE echo "Running tests in $RUN_MODE mode"