-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (56 loc) · 2.18 KB
/
EventRates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Event Rates Beam
# To add additional run-time tests add (to matrix)
# - name: <your test>
# test_exe: /test/<your exe>
# test_config: path/to/tconfiguration
# repo_linking_command: ln -sf /path/to/files/ (usually CAFs + splines)
on:
pull_request:
branches: [develop]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Beam Event Rate Validation
test_exe: /test/TestEventRates
test_config: test/test_configs/EventRates_Beam_TEST.yaml
repo_linking_command: |
ln -s \
/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/MaCh3/inputs/TDR/v2/DUNE_2021_FD_splines inputs/DUNE_spline_files
ln -s \
/cvmfs/dune.osgstorage.org/pnfs/fnal.gov/usr/dune/persistent/stash/MaCh3/inputs/TDR/v2/DUNE_2023_FD_CAFs inputs/DUNE_CAF_files
name: Run Test ${{matrix.name}}
steps:
# Set up CVMFS
- name: Set up CVMFS
uses: cvmfs-contrib/github-action-cvmfs@v4
# Checkout the repository code
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: start docker container with bind mount cvmfs
run: |
docker build . \
--file doc/MaCh3DockerFiles/Alma9/Dockerfile \
--tag ghcr.io/dune/mach3:alma9test \
--build-arg MACH3_DUNE_VERSION=${{ github.head_ref }} \
--build-arg MACH3_DUNE_BUILD_ARGS="-DCUDAProb3Linear_ENABLED=ON -DMACH3_BUILD_TESTS=ON"
# Run event rates
- name: Run Event Rates
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/dune/mach3:alma9test
shell: bash
options: -v /cvmfs:/cvmfs:shared
run: |
${{matrix.repo_linking_command}}
source ./bin/setup.MaCh3.sh
source ./bin/setup.NuOscillator.sh
source ./bin/setup.MaCh3DUNE.sh
.${{matrix.test_exe}} ${{matrix.test_config}}