Skip to content

Nightly Tests

Nightly Tests #45

Workflow file for this run

name: Nightly Tests
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
jobs:
run-tests:
runs-on: [self-hosted]
strategy:
fail-fast: false
steps:
- name: checkout examples
uses: actions/checkout@v4
- name: checkout opensn
uses: actions/checkout@v4
with:
repository: Open-Sn/opensn
path: opensn
- name: compile opensn
shell: bash
run: |
module load opensn/clang/17 python3/3.12.3
cd opensn && mkdir build && cd build && cmake -DOPENSN_WITH_PYTHON=True .. && make -j
- name: test examples
shell: bash
run: |
module load opensn/clang/17 python3/3.12.3
cd OpenSn_Logo_CAD && mpirun -np 8 ../opensn/build/python/opensn -i opensn.py && cd ..
cd Urban_Source && mpirun -np 96 ../opensn/build/python/opensn -i urban_source.py && cd ..
cd HEU_MET_FAST_003 && mpirun -np 12 ../opensn/build/python/opensn -i HEU_MET_FAST_003.py && cd ..