-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1.31 KB
/
run-tests.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
34
35
36
37
38
name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install pytest
pip install numpy
pip install scipy
pip install statsmodels
pip install h5py
pip install matplotlib
- name: Run fit-functions tests
run: |
pytest tests/testFitFunctions.py
- name: Run AnalyzeH5.py and diff against expected plots
run: |
mkdir test
python AnalyzeH5.py -f ../testData/lowFlux/SimpleClusters_c0_r334_n100.h5 -r 666 -s 2,15
diff -r test/AnalyzeH5_r666_c0_r1_c14_testLabel_E.png ../testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_r1_c14_testLabel_E.png
diff -r test/AnalyzeH5_r666_c0_testLabel_E.png ../testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_testLabel_E.png
diff -r test/AnalyzeH5_r666_c0_testLabel_gainDistribution.png ../testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_testLabel_gainDistribution.png
diff -r test/AnalyzeH5_r666_c0_r1_c14_testLabel_fitInfo.npy ../testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_r1_c14_testLabel_fitInfo.npy