-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (45 loc) · 1.28 KB
/
checks.yml
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
60
61
name: code checks
on: [push, pull_request, workflow_dispatch]
jobs:
bandit:
name: run bandit
runs-on: ubuntu-20.04
steps:
- name: set up python 3.8.11
uses: actions/setup-python@v2
with:
python-version: 3.8.11
- name: install dependencies
run: pip install bandit
- name: checkout code
uses: actions/checkout@v2
- name: run bandit security checks
run: bandit -ll -r caldp
black:
name: run black
runs-on: ubuntu-20.04
steps:
- name: set up python 3.8.11
uses: actions/setup-python@v2
with:
python-version: 3.8.11
- name: install dependencies
run: pip install black
- name: checkout code
uses: actions/checkout@v2
- name: run black style checks
run: black --check caldp caldp/tests -l 120 -v
flake8:
name: run flake8
runs-on: ubuntu-20.04
steps:
- name: set up python 3.8.11
uses: actions/setup-python@v2
with:
python-version: 3.8.11
- name: install dependencies
run: pip install flake8
- name: checkout code
uses: actions/checkout@v2
- name: run flake8 python lint checks
run: flake8 --count --max-line-length=120 --exclude docs