Introduce axis dependent fuzzy boundaries (Eventdisplay converter) #54
Workflow file for this run
This file contains 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: v2dl3-Eventdisplay-CI | |
on: | |
pull_request: | |
paths-ignore: | |
- 'utils/**vegas**' | |
- 'utils/compare_fits_dirs.sh' | |
- '.github/v2dl3-vegas.yml' | |
- '.git*' | |
- 'CITATION.cff' | |
- 'environment-vegas.yml' | |
- 'LICENSE' | |
- 'README.md' | |
- 'setup.py' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install conda dependencies | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda config --set always_yes yes --set changeps1 no | |
conda update -q conda | |
conda env create -n v2dl3Eventdisplay -f environment-eventdisplay.yml | |
conda activate v2dl3Eventdisplay | |
conda info | |
- name: pytest | |
shell: bash -leo pipefail {0} | |
env: | |
PYTHONPATH: . | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda activate v2dl3Eventdisplay | |
pytest . | |
- name: download test data | |
run: | | |
./utils/download_Eventdisplay_test_data.sh | |
- name: V2Dl3-Eventdisplay | |
shell: bash -leo pipefail {0} | |
env: | |
PYTHONPATH: . | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda activate v2dl3Eventdisplay | |
# point-like tests | |
python pyV2DL3/script/v2dl3_for_Eventdisplay.py \ | |
-f ./64080.anasum.root \ | |
./effectiveArea.root \ | |
test-pointlike-CI.fits.gz | |
python pyV2DL3/script/compareFitsFiles.py \ | |
-f ED-pointlike-CI.fits.gz test-pointlike-CI.fits.gz \ | |
-d test-pointlike.log | |
cat test-pointlike.log | |
grep -q "No differences found" test-pointlike.log | |
# full-enclosure tests | |
python pyV2DL3/script/v2dl3_for_Eventdisplay.py --full-enclosure \ | |
-f ./64080.anasum.root \ | |
./effectiveArea.root \ | |
test-full-enclosure-CI.fits.gz | |
python pyV2DL3/script/compareFitsFiles.py \ | |
-f ED-fullenclosure-CI.fits.gz test-full-enclosure-CI.fits.gz \ | |
-d test-full-enclosure.log | |
cat test-full-enclosure.log | |
grep -q "No differences found" test-full-enclosure.log |