Skip to content

Commit b876726

Browse files
authored
add CI for test_partition_functions (#1673)
1 parent 8cb64e7 commit b876726

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: test_partition_functions
2+
3+
on: [pull_request]
4+
jobs:
5+
test_partition_functions:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
12+
- name: Get AMReX
13+
run: |
14+
mkdir external
15+
cd external
16+
git clone https://github.com/AMReX-Codes/amrex.git
17+
cd amrex
18+
git checkout development
19+
echo 'AMREX_HOME=$(GITHUB_WORKSPACE)/external/amrex' >> $GITHUB_ENV
20+
echo $AMREX_HOME
21+
if [[ -n "${AMREX_HOME}" ]]; then exit 1; fi
22+
cd ../..
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update -y -qq
27+
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0
28+
29+
- name: Compile
30+
run: |
31+
cd unit_test/test_part_func
32+
make clean
33+
make -j 4
34+
35+
- name: Run test_part_func
36+
run: |
37+
cd unit_test/test_part_func
38+
./main3d.gnu.ex > test.out
39+
40+
- name: Compare to stored output
41+
run: |
42+
cd unit_test/test_part_func
43+
diff -I "^Initializing AMReX" -I "^AMReX" -I "^reading in reaclib rates" test.out ci-benchmarks/part_func.out
44+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Initializing AMReX (24.10-20-gb9d549bcf4a6)...
2+
AMReX (24.10-20-gb9d549bcf4a6) initialized
3+
starting the single zone burn...
4+
reading in network electron-capture / beta-decay tables...
5+
temperature = 5000000000
6+
Ni56: 1.010868 2.337172328e-11
7+
Fe52: 1.743116 3.226066771e-10
8+
spins: 2 1 1 8 1
9+
AMReX (24.10-20-gb9d549bcf4a6) finalized

0 commit comments

Comments
 (0)