From 69558c13ca3705eb99846acd7fde68d5ecb5bff5 Mon Sep 17 00:00:00 2001 From: Massimiliano Lincetto Date: Tue, 1 Aug 2023 06:33:53 +0200 Subject: [PATCH] maybe add test? --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a62da130 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 .