diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..74eea039 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1 @@ +Checks: '-*,cppcoreguidelines-*,-cppcoreguidelines-pro-type-union-access' diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0ee89181..5c32bce0 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -11,9 +11,22 @@ jobs: code-checks: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: pre-commit/action@v3.0.0 + 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 }}