Skip to content

Nightly Tests

Nightly Tests #295

Workflow file for this run

name: Nightly Tests
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
push:
branches: [main]
pull_request:
branches:
- main
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
export OPENSN=$PWD/opensn/build/python/opensn
python3 test.py