Allow configuring the min dt for convergence #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build C++ Code and run Regression Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
paths-ignore: | |
- '.github/**' | |
- '**/workflows/**' | |
- 'requirements.txt' | |
pull_request: | |
branches: | |
- 'master' | |
paths-ignore: | |
- '.github/**' | |
- '**/workflows/**' | |
- 'requirements.txt' | |
env: | |
PYTHONPATH: /home/runner/work/mushy-layer/mushy-layer/test:/home/runner/work/mushy-layer/mushy-layer/plotting | |
REGRESSIONS_PATH: /home/runner/work/mushy-layer/mushy-layer/test/regression | |
TEST_PATH: /home/runner/work/mushy-layer/mushy-layer/test | |
MUSHY_LAYER_TEST_PATH: /home/runner/work/mushy-layer/mushy-layer/test/output | |
CH_TIMER: 1 | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jrgparkinson/[email protected] | |
with: | |
compile_opts: 'DIM=2' | |
chombo_tag: c00e7b6214dccce2690c9c96940b9d915a14a26b | |
- name: Compile Chombo 3D | |
run: | | |
cd $CHOMBO_HOME | |
make lib DIM=3 | |
- name: Compile ChomboCompare | |
run: | | |
cd $CHOMBO_HOME/util/ChomboCompare | |
make compare DIM=2 | |
make compare DIM=3 | |
- name: Compile mushy-layer | |
run: | | |
cd $GITHUB_WORKSPACE/execSubcycle | |
make all DIM=2 | |
make all DIM=3 | |
# Do regression tests | |
- name: Set up Python 3.6 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.6 | |
- name: Cache pip | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Setup for tests | |
run: | | |
cd $GITHUB_WORKSPACE | |
python install.py -g | |
- name: Run regressions | |
run: | | |
echo "--------------" | |
echo $PYTHONPATH | |
echo "--------------" | |
echo $CH_TIMER | |
echo "--------------" | |
cd $GITHUB_WORKSPACE/test/regression | |
py.test | |
# python run_regression_tests.py | |
# Rerun with higher verbosity if there was a failure and also upload | |
- if: failure() | |
name: Run regressions with more ouput | |
run: | | |
cd $GITHUB_WORKSPACE/test/regression | |
mkdir debug | |
cd debug | |
$GITHUB_WORKSPACE/execSubcycle/mushyLayer2d.Linux.64.g++.gfortran.OPT.ex ../darcy/inputs | |
cd $GITHUB_WORKSPACE/test/regression | |
python run_regression_tests.py -v -t darcy | |
# Assume verbose output will also fail | |
- if: failure() | |
uses: actions/upload-artifact@v1 | |
name: Upload test results | |
with: | |
name: temp | |
path: /home/runner/work/_temp/ | |
# with: | |
# name: test-results | |
# path: ${{ env.REGRESSIONS_PATH }} | |
# Standard upload | |
- uses: actions/upload-artifact@v1 | |
name: Upload test results | |
with: | |
name: test-results | |
path: ${{ env.REGRESSIONS_PATH }} | |
# Upload temp data for debugging | |
# - uses: actions/upload-artifact@v1 | |
# name: Upload temp data | |
# with: | |
# name: temp | |
# path: /home/runner/work/_temp/ | |
# Now try and run one of the functional tests | |
# (the others will take too long or need MATLAB) | |
# Plot interval of -1 to produce less output (only final plot files) | |
- name: Run Method Paper Tests | |
run: | | |
cd $GITHUB_WORKSPACE/test | |
python testPorousMushyHole.py -p -1 | |
- uses: actions/upload-artifact@v1 | |
name: Upload method test results | |
with: | |
name: method-paper-results | |
path: ${{ env.MUSHY_LAYER_TEST_PATH }} | |