Skip to content

Commit

Permalink
CI: Run examples
Browse files Browse the repository at this point in the history
  • Loading branch information
olantwin committed Dec 18, 2024
1 parent bea82eb commit 3e38044
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
image: registry.cern.ch/ship/gha-runner:latest
volumes:
- /cvmfs/ship.cern.ch:/cvmfs/ship.cern.ch

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: FairShip

- name: Source and Build
run: |
source /cvmfs/ship.cern.ch/24.10/setUp.sh
Expand All @@ -42,13 +42,19 @@ jobs:
source /cvmfs/ship.cern.ch/24.10/setUp.sh
eval `alienv load FairShip/latest`
python $FAIRSHIP/macro/ShipReco.py -f ship.conical.Pythia8-TGeant4.root -g geofile_full.conical.Pythia8-TGeant4.root
continue-on-error: true # workaround to ignore segfaul on exit
continue-on-error: true # workaround to ignore segfault on exit

- name: Run Ana
run: |
source /cvmfs/ship.cern.ch/24.10/setUp.sh
eval `alienv load FairShip/latest`
python -i $FAIRSHIP/macro/ShipAna.py -f ship.conical.Pythia8-TGeant4_rec.root -g geofile_full.conical.Pythia8-TGeant4.root
python $FAIRSHIP/macro/ShipAna.py -f ship.conical.Pythia8-TGeant4_rec.root -g geofile_full.conical.Pythia8-TGeant4.root
- name: Run examples
run: |
source /cvmfs/ship.cern.ch/24.10/setUp.sh
eval `alienv load FairShip/latest`
python $FAIRSHIP/examples/analysis_example.py
- name: Upload .root artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 3e38044

Please sign in to comment.