Skip to content

Commit 63e8d47

Browse files
committed
feat: add clang-tidy to CI
1 parent d03f261 commit 63e8d47

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci_test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,21 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v5
5454
with:
55+
submodules: recursive
5556
fetch-depth: 0
5657
fetch-tags: true
5758
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
59+
- name: Set up uv
60+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
61+
- uses: ./.github/actions/detect-env-vars
62+
id: env_vars
63+
- name: Run clang-tidy
64+
run: |
65+
uv run --no-project --with "clang-tidy==21.1.1" \
66+
python tests/lint/clang_tidy_precommit.py \
67+
--build-dir=build-pre-commit \
68+
--jobs=${{ steps.env_vars.outputs.cpu_count }} \
69+
./src/ ./include ./tests
5870
5971
doc:
6072
needs: [lint, prepare]

0 commit comments

Comments
 (0)