Update lint_python.yml #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
wget https://raw.githubusercontent.com/c0m4r/okrutnik/main/okrutnik.sh | |
chmod +x okrutnik.sh | |
./okrutnik.sh --install | |
- run: ./okrutnik.sh lib/*.py || true | |
- run: ./okrutnik.sh upgrader.py | |
- run: ./okrutnik.sh client.py | |
- run: ./okrutnik.sh loki.py | |
- run: ruff . | |
- run: black --diff . | |
- run: codespell --skip="./.git/*" --skip="./signature-base" --skip="./lib/python3*" | |
- run: pip install -r requirements.txt | |
- run: mypy --install-types --non-interactive --exclude 'lib64' . || true | |
- run: pylama *.py lib/*.py || true | |
- run: pylint *.py lib/*.py || true | |
- run: safety check --ignore 62044 | |
- run: ./deploy.sh | |
- run: timeout -s TERM 10 ./loki.py -d || true | |
- run: ./loki.py --noprocs --noindicator --dontwait --debug -p ./test | |
- run: ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test | |
- run: ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test |