Skip to content

Commit

Permalink
DEV: Update actions to use h5-test .py file
Browse files Browse the repository at this point in the history
  • Loading branch information
nstelter-slac committed Jan 30, 2024
1 parent d01dbd1 commit 205848e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ jobs:
- name: Run fit-functions tests
run: |
pytest tests/testFitFunctions.py
pytest tests/test_FitFunctions.py
- name: Run AnalyzeH5.py and diff against expected plots
run: |
mkdir test
python scripts/AnalyzeH5.py -f testData/lowFlux/SimpleClusters_c0_r334_n100.h5 -p test -r 666 -s 2,15
diff test/AnalyzeH5_r666_c0_r1_c14_testLabel_E.png testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_r1_c14_testLabel_E.png
diff test/AnalyzeH5_r666_c0_testLabel_E.png testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_testLabel_E.png
diff test/AnalyzeH5_r666_c0_testLabel_gainDistribution.png testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_testLabel_gainDistribution.png
diff test/AnalyzeH5_r666_c0_r1_c14_testLabel_fitInfo.npy testData/expected/analyzeH5Expected/AnalyzeH5_r666_c0_r1_c14_testLabel_fitInfo.npy
cd tests
pytest test_AnalyzeH5.py

0 comments on commit 205848e

Please sign in to comment.