Adding FCC-hh analysis example, code and event weight processing #425
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: clang-format | |
on: [push, pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: cvmfs-contrib/github-action-cvmfs@v4 | |
- name: Start container | |
run: | | |
docker run -it --name CI_container \ | |
-v ${GITHUB_WORKSPACE}:/Package \ | |
-v /cvmfs:/cvmfs:shared \ | |
-d ghcr.io/key4hep/key4hep-images/alma9:latest \ | |
/bin/bash | |
- name: Add upstream | |
run: | | |
docker exec CI_container /bin/bash -c 'cd Package; \ | |
git config --global --add safe.directory /Package; \ | |
git remote add upstream https://github.com/HEP-FCC/FCCAnalyses.git; \ | |
git fetch upstream' | |
- name: Run formatter | |
run: | | |
docker exec CI_container /bin/bash -c 'cd ./Package; \ | |
source /cvmfs/sw.hsf.org/key4hep/setup.sh;\ | |
git clang-format --diff --style=file $(git merge-base upstream/master HEAD) | |
git clang-format --diffstat --style=file $(git merge-base upstream/master HEAD)' |