Skip to content

Commit

Permalink
Setup clang-tidy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Sep 27, 2024
1 parent 7821038 commit a341b85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Checks: '-*,cppcoreguidelines-*,-cppcoreguidelines-pro-type-union-access'
15 changes: 14 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@ jobs:
code-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]

clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build project
run: |
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja
cmake --build build
ln -s build/compile_commands.json
- name: Run clang-tidy
run: |
clang-tidy src/pantab/writer.cpp
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit a341b85

Please sign in to comment.