From 90d4ab322a3c19d64520cdefd4bc91d73d31ed93 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 2 Aug 2024 10:53:26 +0200 Subject: [PATCH] Add CI workflows for running the 3 ttbar events tests (#145) * Add jobs for marlin and gaudi * Limit the number of workflows that are in flight per branch * Run only on master branch pushes --- .github/workflows/key4hep.yml | 87 +++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 .github/workflows/key4hep.yml diff --git a/.github/workflows/key4hep.yml b/.github/workflows/key4hep.yml new file mode 100644 index 00000000..957b23a5 --- /dev/null +++ b/.github/workflows/key4hep.yml @@ -0,0 +1,87 @@ +name: smoke-tests + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + marlin-std-reco: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + detector_model: [ILD_l5_o1_v02] + key4hep_build: [sw.hsf.org, sw-nightlies.hsf.org] + os: [ubuntu2204, el9] + steps: + - uses: actions/checkout@v4 + - uses: cvmfs-contrib/github-action-cvmfs@v4 + - uses: aidasoft/run-lcg-view@v4 + with: + container: ${{ matrix.os }} + view-path: /cvmfs/${{ matrix.key4hep_build }}/key4hep + run: | + echo "::group::Run Simulation" + cd StandardConfig/production + ddsim --inputFiles Examples/bbudsc_3evt/bbudsc_3evt.stdhep \ + --outputFile bbudsc_3evt_SIM.slcio \ + --compactFile $lcgeo_DIR/ILD/compact/${{ matrix.detector_model }}/${{ matrix.detector_model }}.xml \ + --steeringFile ddsim_steer.py + echo "::endgroup::" + echo "::group::Run Reconstruction" + Marlin MarlinStdReco.xml \ + --constant.lcgeo_DIR=$lcgeo_DIR \ + --constant.DetectorModel=${{ matrix.detector_model }} \ + --constant.OutputBaseName=bbudsc_3evt \ + --global.LCIOInputFiles=bbudsc_3evt_SIM.slcio + echo "::endgroup::" + echo "::group::Run LCTuple" + Marlin MarlinStdRecoLCTuple.xml \ + --global.LCIOInputFiles=bbudsc_3evt_DST.slcio \ + --MyAIDAProcessor.FileName=bbudsc_3evt_LCTuple + echo "::endgroup::" + echo "::group::Run MiniDST production" + Marlin MarlinStdRecoMiniDST.xml \ + --global.LCIOInputFiles=bbudsc_3evt_DST.slcio \ + --constant.OutputFile=bbudsc_3evt_miniDST.slcio \ + --constant.lcgeo_DIR=$lcgeo_DIR + echo "::endgroup::" + + + # Reconstruction using EDM4hep inputs and outputs + gaudi-std-reco: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + detector_model: [ILD_l5_o1_v02] + key4hep_build: [sw.hsf.org, sw-nightlies.hsf.org] + os: [ubuntu2204, el9] + + steps: + - uses: actions/checkout@v4 + - uses: cvmfs-contrib/github-action-cvmfs@v4 + - uses: aidasoft/run-lcg-view@v4 + with: + container: ${{ matrix.os }} + view-path: /cvmfs/${{ matrix.key4hep_build }}/key4hep + run: | + echo "::group::Run simulation" + cd StandardConfig/production + ddsim --inputFiles Examples/bbudsc_3evt/bbudsc_3evt.stdhep \ + --outputFile bbudsc_3evt_SIM.edm4hep.root \ + --compactFile $lcgeo_DIR/ILD/compact/${{ matrix.detector_model }}/${{ matrix.detector_model }}.xml \ + --steeringFile ddsim_steer.py + echo "::endgroup::" + echo "::group::Run reconstruction" + k4run ILDReconstruction.py \ + --inputFiles=bbudsc_3evt_SIM.edm4hep.root \ + --outputFileBase=bbudsc_3evt_GaudiRec \ + --detectorModel=${{ matrix.detector_model }}