OpenMC/tools/ci/gha-script.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
448 B
Bash
Raw Permalink Normal View History

#!/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
2022-11-28 11:03:41 -03:00
# Check NCrystal installation
if [[ $NCRYSTAL = 'y' ]]; then
# Change environmental variables
eval $( "${HOME}/ncrystal_inst/bin/ncrystal-config" --setup )
nctool --test
2022-11-28 11:03:41 -03:00
fi
# Run regression and unit tests
pytest --cov=openmc -v $args tests