-
Notifications
You must be signed in to change notification settings - Fork 377
41 lines (32 loc) · 1.09 KB
/
compliance.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
41
name: Compliance
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-code:
name: Run compliance checks
runs-on: ubuntu-24.04
steps:
- name: Checkout code including full history
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install compliance tools
run: |
sudo apt update
sudo apt -qy --no-install-recommends install clang-format-14
pip3 install --require-hashes -r tools/requirements-compliance.txt
- name: Check commits with gitlint
run: |
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-gitlint
- name: Check C code (delta) with clang-format
run: |
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-clang-format
- name: Check CMakeLists.txt files with cmake-lint
run: |
tools/ci/run_ci.sh --run-cmake-format
- name: Check Python code with pylint
run: |
cd tests
pylint integration