forked from AIDASoft/podio
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.04 KB
/
pre-commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: pre-commit
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Setup Key4hep nightlies
run: source /cvmfs/sw-nightlies.hsf.org/key4hep
- name: Setup pre-commit
run: |
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: |
cmake -S . -B build -DENABLE-SIO=ON \
-DENABLE_JULIA=ON \
-DENABLE_RNTUPLE=ON \
-DENABLE_DATASOURCE=ON \
-DCMAKE_CXX_STANDARD=20 \
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror "\
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DUSE_EXTERNAL_CATCH2=OFF
ln -s build/compile_commands.json compile_commands.json
- name: Run pre-commit
run: |
pre-commit run --show-diff-on-failure \
--color=always \
--all-files