-
Notifications
You must be signed in to change notification settings - Fork 76
54 lines (51 loc) · 1.13 KB
/
lint.yml
File metadata and controls
54 lines (51 loc) · 1.13 KB
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
on:
workflow_call:
push:
paths:
- '**/*.cpp'
- '**/*.hpp'
- '**/*.c'
- '**/*.h'
- '**/*.py'
- '**/*.sh'
- '.clang-format'
- 'setup.cfg'
- '.github/workflows/lint.yml'
pull_request:
paths:
- '**/*.cpp'
- '**/*.hpp'
- '**/*.c'
- '**/*.h'
- '**/*.py'
- '**/*.sh'
- '.clang-format'
- 'setup.cfg'
- '.github/workflows/lint.yml'
jobs:
clang-format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.20
with:
source: '.'
clangFormatVersion: 20
python-lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install flake8
run: python3 -m pip install flake8
- name: Run flake8
run: python3 -m flake8 .
shell-lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run shellcheck
run: shellcheck scripts/*.sh