-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.55 KB
/
check.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
name: Checks
on: [pull_request, push]
jobs:
codespell:
runs-on: ${{ matrix.os }}
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest # disabled others to conserve workflow runtime
python-version: ["3.10"]
# env:
# OS: ${{ matrix.os }}
# PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'
# cache-dependency-path: 'requirements-dev.txt'
- run: pip install codespell
- run: codespell --ignore-words-list="groupt,nd,ot"
bandit:
runs-on: ${{ matrix.os }}
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest # disabled others to conserve workflow runtime
python-version: ["3.10"]
# env:
# OS: ${{ matrix.os }}
# PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'
# cache-dependency-path: 'requirements-dev.txt'
- run: pip install bandit
- run: bandit --recursive --skip B101,B104,B105,B110,B307,B311,B404,B603,B607 .