Nightly Tests #177
This file contains hidden or 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: 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 |