Skip to content

Commit

Permalink
maybe add test?
Browse files Browse the repository at this point in the history
  • Loading branch information
mlincett committed Aug 1, 2023
1 parent a856317 commit 69558c1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI testing

on:
push:
branches:
- main
pull_request:

jobs:
serialization-test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ 3.10, 3.11, 3.12 ]

steps:
- name: Checkout main repository
uses: actions/checkout@v3

- name: Checkout test data
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@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install
run: |
pip install .
- name: Run Python script
# working-directory: auxiliary-repo/path/to/directory # Replace 'path/to/directory' with the path to the directory containing your Python script
run: examples/npz_to_json.py --input-file skymap_scanner/tests/data/results_npz/millipede_wilks/run00136662.evt000035405932.neutrino_1.npz --output-dir .

0 comments on commit 69558c1

Please sign in to comment.