Skip to content

Simplified pip and conda environment; pypi deployment #50

Simplified pip and conda environment; pypi deployment

Simplified pip and conda environment; pypi deployment #50

---
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.10"]
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 mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-eventdisplay.yml
create-args: python=${{ matrix.python-version }}
init-shell: bash
- name: pytest
shell: bash -leo pipefail {0}
env:
PYTHONPATH: .
run: |
pytest .
- name: download test data
run: |
./utils/download_Eventdisplay_test_data.sh
- name: V2Dl3-Eventdisplay
shell: bash -leo pipefail {0}
env:
PYTHONPATH: .
run: |
# 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