forked from idaholab/FORCE
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.4 KB
/
github-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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