OpenMC/tools/ci/gha-script.sh
2020-12-16 14:28:51 +00:00

18 lines
270 B
Bash
Executable file

#!/bin/bash
set -ex
# Argument List
args=" "
# Check for MPI
if [[ $MPI == 'y' ]]; then
args="${args} --mpi "
fi
# Check for event-based
if [[ $EVENT == 'y' ]]; then
args="${args} --event "
fi
# Run regression and unit tests
pytest --cov=openmc -v $args tests