add py 3.8 #8
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: CI testing | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
serialization-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false # run all tests even if one fails | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11"], | ||
input-file: [ "millipede_wilks/run00136662.evt000035405932.neutrino_1" ] | ||
steps: | ||
- name: Checkout main repository | ||
uses: actions/checkout@v3 | ||
- name: Checkout test data from skymap_scanner | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: icecube/skymap_scanner | ||
ref: main | ||
path: skymap_scanner | ||
sparse-checkout: tests/data | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install | ||
run: | | ||
pip install . | ||
- name: Run conversion script | ||
# working-directory: auxiliary-repo/path/to/directory # Replace 'path/to/directory' with the path to the directory containing your Python script | ||
run: python examples/npz_to_json.py --input-file skymap_scanner/tests/data/results_npz/${{ matrix.input-file }}.npz --output-dir . | ||
- name: Compare output | ||
run: | | ||
outfile=$(ls -Art | tail -n 1) | ||
diff $outfile skymap_scanner/tests/data/results_json/${{ matrix.input-file }}.json |