forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.31 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Compliance
on: pull_request
jobs:
check-gitlint:
name: Run gitlint
runs-on: ubuntu-20.04
steps:
- name: Checkout code including full history
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install gitlint
run: |
pip3 install gitlint
- name: Check commits with gitlint
run: |
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-gitlint
check-clang-format:
name: Run clang-format
runs-on: ubuntu-20.04
steps:
- name: Checkout code including full history
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install clang-format
run: |
sudo apt update
sudo apt -qy --no-install-recommends install clang-format-10
- name: Check commits with clang-format
run: |
tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-clang-format
check-pylint:
name: Run pylint
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install pylint
run: |
pip3 install pylint -r tests/integration/requirements.txt
- name: Check python code with pylint
run: |
python -c "import sys; print(sys.version)"
cd tests
pylint integration