forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 959 Bytes
/
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
name: Compliance
on: pull_request
jobs:
lint-code:
name: Run compliance checks
runs-on: ubuntu-24.04
steps:
- name: Checkout code including full history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install compliance tools
run: |
sudo apt update
sudo apt -qy --no-install-recommends install clang-format-14
pip3 install -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