Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates to GitHub Actions #79

Merged
merged 2 commits into from
Sep 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 62 additions & 63 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Validation

on:
Expand Down Expand Up @@ -27,16 +26,16 @@ jobs:
name: Validate library
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-dev
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- run: python3 pipeline/validateLibrary.py .
- run: python3 pipeline/validateLibrary.py .

build-rawlib:
name: Build only rawlib
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-dev
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
steps:
- uses: actions/checkout@v3
- name: Build and install
Expand All @@ -55,71 +54,71 @@ jobs:
name: Check processes
runs-on: ubuntu-latest
container:
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics-dev
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ build-rawlib ]
steps:
- uses: actions/checkout@v3
- 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 pipeline/processes/noise
python addNoise.py
- name: Common Noise
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/commonNoise
restRoot -b -q commonNoise.C
- name: Veto Analysis
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd 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 pipeline/processes/shaping
restRoot -b -q shaping.C
- name: Fitting Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/fit
restRoot -b -q fit.C
- name: General Fit Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/fit
restRoot -b -q GeneralFit.C
- name: Analysis Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/analysis
restManager --c veto.rml --f ../../data/R01208_Ar2Iso_Background14h_14Vetos_IccubFEC-000.aqs
restRoot -b -q validate.C
- uses: actions/checkout@v3
- 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 pipeline/processes/noise
python addNoise.py
- name: Common Noise
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/commonNoise
restRoot -b -q commonNoise.C
- name: Veto Analysis
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd 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 pipeline/processes/shaping
restRoot -b -q shaping.C
- name: Fitting Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/fit
restRoot -b -q fit.C
- name: General Fit Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd pipeline/processes/fit
restRoot -b -q GeneralFit.C
- name: Analysis Process
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd 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-dev
image: ghcr.io/lobis/root-geant4-garfield:rest-for-physics
needs: [ build-rawlib ]
steps:
- uses: actions/checkout@v3
- 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 pipeline/external/dream
restManager --c dream.rml --f dummyDreamData.fdf
restRoot -b -q dream.C
- uses: actions/checkout@v3
- 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 pipeline/external/dream
restManager --c dream.rml --f dummyDreamData.fdf
restRoot -b -q dream.C