-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (45 loc) · 1.18 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
name: code checks
on: [push, pull_request]
jobs:
flake8:
name: run flake8
runs-on: ubuntu-20.04
steps:
- name: set up python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: checkout code
uses: actions/checkout@v2
- name: install dependencies
run: pip install .[dev]
- name: run flake8 static code analysis
run: tox -e flake8
black:
name: run black
runs-on: ubuntu-20.04
steps:
- name: set up python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: checkout code
uses: actions/checkout@v2
- name: install dependencies
run: pip install .[dev]
- name: run black code formatting
run: tox -e black
bandit:
name: run bandit
runs-on: ubuntu-20.04
steps:
- name: set up python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: checkout code
uses: actions/checkout@v2
- name: install dependencies
run: pip install .[dev]
- name: run bandit security checks
run: tox -e bandit