Skip to content

Commit

Permalink
(test)
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 20, 2024
1 parent d49b920 commit 2d9a910
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/wipac-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
num_datasets:
- 1
- 25
- 10000000
base_path:
- /tmp/data/sim/Upgrade/2022/generated/neutrino-generator/88888
- /tmp/data/sim/IceCube/2023/filtered/CORSIKA
- /tmp/data/sim/Upgrade/2022/filtered
- /tmp/data/sim/IceCube/2023
- /tmp/data/sim/Upgrade
- /tmp/data/sim
num_datasets:
- 1
- 25
- 10000000
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
- name: Create a mock dataset structure
run: |
set -e
job_range_dpaths=(
/tmp/data/sim/{IceCube,Upgrade}/{2022,2023}/{generated,filtered}/{CORSIKA,neutrino-generator}/{77777,88888,99999}/{00-11,22-33,44-55}
)
Expand All @@ -152,11 +153,13 @@ jobs:
- name: Run script with matrix parameters
run: |
set -e
echo "Testing with base_path=${{ matrix.base_path }}, num_datasets=${{ matrix.num_datasets }}"
./resources/sample-each-dataset.sh ${{ matrix.base_path }} 0.5 ${{ matrix.num_datasets }}
- name: Validate script execution
run: |
set -e
# Check if the expected number of datasets are processed
processed_count=$(find ${{ matrix.base_path }} -name '*.histo.hdf5' | wc -l)
if [[ $processed_count -lt ${{ matrix.num_datasets }}} ]]; then
Expand Down

0 comments on commit 2d9a910

Please sign in to comment.