-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.22 KB
/
lint_python.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
name: lint_python
on:
push:
paths:
- '**.py'
- 'lib/**.py'
- '.github/workflows/lint_python.yml'
pull_request:
paths:
- '**.py'
- 'lib/**.py'
- '.github/workflows/lint_python.yml'
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12.1'
- run: pip install --upgrade pip
- run: pip install --upgrade setuptools wheel
- run: pip install black codespell mypy pytest ruff safety pylama pylint
- run: ruff .
- run: black --diff .
- run: codespell --skip="./.git/*" --skip="./signature-base" --skip="./lib/python3*"
- run: pip install -r requirements.txt
- run: mypy --exclude 'lib64' . || true
- run: pylama *.py lib/*.py || true
- run: pylint *.py lib/*.py || true
- run: safety check --ignore 62044
- run: timeout -s TERM 10 python ./loki.py -d || true
- run: python ./loki.py --noprocs --noindicator --dontwait --debug -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test