Skip to content

Commit 81f0076

Browse files
committed
checks now run on ubuntu-latest
1 parent e10936b commit 81f0076

File tree

3 files changed

+52
-17
lines changed

3 files changed

+52
-17
lines changed

.github/workflows/daily.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ jobs:
2121
CC: icx
2222
steps:
2323
- uses: actions/checkout@v4
24-
- name: Apt installs
25-
run: |
26-
sudo apt update
27-
sudo apt install -y clang-format clang-tidy uncrustify cppcheck iwyu
28-
- uses: actions/setup-python@v4
24+
- name: Python setup
25+
uses: actions/setup-python@v4
2926
with:
3027
python-version: '3.10'
3128
cache: 'pip'
32-
- run: pip install pre-commit
33-
- run: pre-commit run --all-files
29+
- run: pip install -r requirements.txt
3430
- name: Build & Run
3531
run: srun -p pvc-shared -w idc-beta-batch-pvc-node-12 scripts/daily.sh
32+
- name: Run pre-commit
33+
uses: pre-commit/[email protected]
34+

.pre-commit-config.yaml

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
1-
fail_fast: false
1+
# SPDX-FileCopyrightText: Intel Corporation
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
# See https://pre-commit.com for more information
6+
# See https://pre-commit.com/hooks.html for more hooks
27
repos:
3-
- repo: https://github.com/pocc/pre-commit-hooks
4-
rev: master
5-
hooks:
6-
- id: clang-format
7-
args: [--style=Google]
8-
- id: clang-tidy
9-
- id: uncrustify
10-
- id: cppcheck
11-
- id: include-what-you-use
8+
9+
- repo: https://github.com/pre-commit/mirrors-clang-format
10+
rev: v16.0.6
11+
hooks:
12+
- id: clang-format
13+
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v4.4.0
16+
hooks:
17+
- id: trailing-whitespace
18+
- id: end-of-file-fixer
19+
- id: mixed-line-ending
20+
- id: check-xml
21+
- id: check-yaml
22+
- id: check-case-conflict
23+
- id: check-toml
24+
- id: check-json
25+
- id: check-added-large-files
26+
args: ['--maxkb=800']
27+
28+
29+
- repo: https://github.com/pycqa/isort
30+
rev: 5.12.0
31+
hooks:
32+
- id: isort
33+
34+
- repo: https://github.com/fsfe/reuse-tool
35+
rev: v2.1.0
36+
hooks:
37+
- id: reuse
38+
39+
- repo: https://github.com/cheshirekow/cmake-format-precommit
40+
rev: v0.6.13
41+
hooks:
42+
- id: cmake-format

requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: Intel Corporation
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
pre-commit==3.4.0

0 commit comments

Comments
 (0)