Skip to content

Commit

Permalink
cleaning up the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gbomarito committed Sep 23, 2024
1 parent 7e3547c commit 6a869a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:

- name: Install MPI
uses: mpi4py/setup-mpi@v1
# run: |
# sudo apt-get update
# sudo apt-get install -y mpich libmpich-dev

- name: Install dependencies
run: |
Expand All @@ -36,9 +33,11 @@ jobs:
- name: Set pythonpath
run: |
echo "PYTHONPATH=`pwd`" >> $GITHUB_ENV
echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV
echo "RDMAV_FORK_SAFE=1" >> $GITHUB_ENV
- name: Set safe forking var
run: |
echo "RDMAV_FORK_SAFE=1" >> $GITHUB_ENV
- name: Build bingocpp
run: |
Expand Down
6 changes: 3 additions & 3 deletions tests/.run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ then
fi
echo "found $MPI_EXEC"

RUN_MODE=${1-"normal"}
RUN_MODE=${1-"coverage"}
echo "Running tests in $RUN_MODE mode"

# run mpi tests
Expand All @@ -21,10 +21,10 @@ do
echo "Running mpitest: $i in $RUN_MODE mode"
if [ $RUN_MODE == "coverage" ]
then
$MPI_EXEC -n 2 coverage run --parallel-mode --source=bingo $i
$MPI_EXEC -n 3 coverage run --parallel-mode --source=bingo $i
elif [ $RUN_MODE == "normal" ]
then
$MPI_EXEC -n 2 --bind-to none python $i
$MPI_EXEC -n 3 python $i
fi
fi
done
Expand Down

0 comments on commit 6a869a7

Please sign in to comment.