Skip to content

Commit

Permalink
Run in one large step
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 24, 2024
1 parent d96d502 commit 9629d29
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Setup Key4hep nightlies
run: source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
- name: Setup pre-commit
run: |
- name: Run pre-commit
run : |
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
echo "::group::Setup pre-commit"
python -m venv pre-commit-venv
source pre-commit-venv/bin/activate
pip install pre-commit pylint==2.17.7 flake8
- name: Run CMake
run: |
echo "::endgroup::"
echo "::group::Run CMake"
cmake -S . -B build -DENABLE-SIO=ON \
-DENABLE_JULIA=ON \
-DENABLE_RNTUPLE=ON \
Expand All @@ -31,8 +31,8 @@ jobs:
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DUSE_EXTERNAL_CATCH2=OFF
ln -s build/compile_commands.json compile_commands.json
- name: Run pre-commit
run: |
echo "::group::Run pre-commit"
pre-commit run --show-diff-on-failure \
--color=always \
--all-files
--all-files
echo "::endgroup::"

0 comments on commit 9629d29

Please sign in to comment.