mgarrouste is testing out FORCE #402
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: GitHub FORCE test | |
run-name: ${{ github.actor }} is testing out FORCE | |
on: | |
schedule: | |
- cron: '0 0 * * wed' | |
push: | |
jobs: | |
Test-FORCE-Linux: | |
runs-on: [self-hosted, linux] | |
steps: | |
- run: echo " The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo " This job is now running on a ${{ runner.os }} server" | |
- run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: pwd | |
- run: rm -Rf raven && git clone https://github.com/idaholab/raven.git | |
- run: python3 raven/scripts/install_plugins.py -s TEAL | |
- run: python3 raven/scripts/install_plugins.py -s HERON | |
- run: WD=`(cd ../../.. && pwd)` && export RAVEN_LIBS_NAME="raven_libs_"`basename $WD` && raven/scripts/establish_conda_env.sh --install | |
- run: cd raven && ./build_raven | |
- run: raven/run_tests --library-report | |
- run: source raven/scripts/establish_conda_env.sh --load && cd use_cases && ./model_prep.sh | |
- run: PATH="$PATH:`pwd`/raven" && cd use_cases && python3 model_run.py | |
- run: find . -name model_run_out.txt | |
- name: Archive | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: model_out | |
path: | | |
model_run_out.txt | |
use_cases/model_run_out.txt |