-
Notifications
You must be signed in to change notification settings - Fork 4
170 lines (161 loc) · 5.75 KB
/
Copy pathvalidation.yml
File metadata and controls
170 lines (161 loc) · 5.75 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: Validation
on:
workflow_dispatch:
workflow_call:
env:
CMAKE_BUILD_TYPE: Release
REST_PATH: /rest/rawlib/install
RAW_LIB_PATH: rawlib
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
defaults:
run:
shell: bash
jobs:
libCheck:
name: Validate library
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/rawlib
path: ${{ env.RAW_LIB_PATH }}
- run: python3 ${{ env.RAW_LIB_PATH }}/pipeline/validateLibrary.py .
precommit-config:
name: Validate pre-commit config
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- name: Checkout rawlib
uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/rawlib
path: ${{ env.RAW_LIB_PATH }}
- name: Verify pre-commit config files match
run: |
cd ${{ env.RAW_LIB_PATH }}
curl https://raw.githubusercontent.com/rest-for-physics/framework/master/scripts/validatePreCommitConfig.py | python
build-rawlib:
name: Build only rawlib
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- name: Build and install
uses: rest-for-physics/framework/.github/actions/build@master
with:
cmake-flags: "-DCMAKE_INSTALL_PREFIX=${{ env.REST_PATH }} -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DREST_WELCOME=ON -DRESTLIB_RAW=ON"
branch: ${{ env.BRANCH_NAME }}
- name: Cache framework installation
id: rawlib-install-cache
uses: actions/cache@v3
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
Process:
name: Check processes
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ build-rawlib ]
steps:
- uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/rawlib
path: ${{ env.RAW_LIB_PATH }}
- name: Restore cache
uses: actions/cache@v3
id: rawlib-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Add signal noise
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/noise
python addNoise.py
- name: Common Noise
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/commonNoise
restRoot -b -q commonNoise.C
- name: Veto Analysis
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/veto
restManager --c veto.rml --f ../../data/R01208_Ar2Iso_Background14h_14Vetos_IccubFEC-000.aqs
python vetoValidation.py
- name: Signal Shaping
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/shaping
restRoot -b -q shaping.C
- name: Fitting Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/fit
restRoot -b -q fit.C
- name: General Fit Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/fit
restRoot -b -q GeneralFit.C
- name: Analysis Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/processes/analysis
restManager --c veto.rml --f ../../data/R01208_Ar2Iso_Background14h_14Vetos_IccubFEC-000.aqs
restRoot -b -q validate.C
DreamData:
name: Process Dream data
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ build-rawlib ]
steps:
- uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/rawlib
path: ${{ env.RAW_LIB_PATH }}
- name: Restore cache
uses: actions/cache@v3
id: rawlib-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: Dream data
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/external/dream
restManager --c dream.rml --f dummyDreamData.fdf
restRoot -b -q dream.C
BiPoData:
name: Process BiPo data
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ build-rawlib ]
steps:
- uses: rest-for-physics/framework/.github/actions/checkout@master
with:
branch: ${{ env.BRANCH_NAME }}
repository: rest-for-physics/rawlib
path: ${{ env.RAW_LIB_PATH }}
- name: Restore cache
uses: actions/cache@v3
id: rawlib-install-cache
with:
key: ${{ env.BRANCH_NAME }}-${{ github.sha }}
path: ${{ env.REST_PATH }}
- name: BiPo data
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.RAW_LIB_PATH }}/pipeline/external/BiPo
restManager --c BiPoToRawSignal.rml --f BiPo3Mod2_run_2600.data
restRoot -b -q Validate.C