Skip to content

Commit d4f4257

Browse files
committed
added pre-commit to the workflow
1 parent 9fff83c commit d4f4257

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/daily.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ name: Daily
66

77
on:
88
push:
9-
branches:
10-
- main
119

1210
pull_request:
1311
workflow_dispatch:
@@ -17,11 +15,24 @@ on:
1715

1816
jobs:
1917
checks:
18+
runs-on: devcloud
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Apt installs
22+
run: |
23+
sudo apt update
24+
sudo apt install -y clang-format clang-tidy uncrustify cppcheck iwyu
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.10'
28+
cache: 'pip'
29+
- run: pip install pre-commit
30+
- run: pre-commit run --all-files
31+
icpx:
2032
runs-on: devcloud
2133
env:
2234
CXX: icpx
2335
CC: icx
2436
steps:
25-
- uses: actions/checkout@v4
2637
- name: Build & Run
27-
run: srun -p pvc-shared -w idc-beta-batch-pvc-node-12 scripts/daily.sh
38+
run: srun -p pvc-shared -w idc-beta-batch-pvc-node-12 scripts/daily.sh

0 commit comments

Comments
 (0)