-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (37 loc) · 1017 Bytes
/
pull-request-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test Action in CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CLANG_TIDY_VERSION: 17.0.1
CMAKE_VERSION: 3.21.3
# cannot use > 3.11 due to https://github.com/ssciwr/clang-tidy-wheel/issues/66
PYTHON_VERSION: 3.11
jobs:
check-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install clang-tidy==${CLANG_TIDY_VERSION} cmake==${CMAKE_VERSION}
- name: Configure Test project
run: |
mkdir build
cd build
cmake ../tests
- name: Run clang-tidy
run: |
cd build
cmake --build . --target clang-tidy
- name: Test Suggest Fixes
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
request_changes: false
clang_tidy_fixes: build/fixes.yaml