Find DD4hep first to avoid python version clashes #163
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: pre-commit | |
on: [push, pull_request] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvmfs-contrib/github-action-cvmfs@v3 | |
- name: Run pre-commit | |
run: | | |
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh | |
cd ${GITHUB_WORKSPACE} | |
pre-commit run --show-diff-on-failure \ | |
--color=always \ | |
--all-files |