Update lint_python.yml #124
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: ./deploy.sh | |
- run: | | |
wget https://raw.githubusercontent.com/c0m4r/okrutnik/main/okrutnik.sh | |
chmod +x okrutnik.sh | |
./okrutnik.sh --install | |
- run: ./okrutnik.sh --ignore lib/*.py || true | |
- run: ./okrutnik.sh upgrader.py | |
- run: ./okrutnik.sh client.py | |
- run: ./okrutnik.sh --ignore loki.py || true | |
- run: pip install --upgrade pip setuptools wheel | |
- run: pip install --upgrade bandit black codespell mypy pylint pyright pylama ruff safety | |
- run: ruff . || true | |
- run: black --diff . || true | |
- run: codespell --skip="./.git/*" --skip="./signature-base" --skip="./lib/python3*" --skip="./venv" | |
- run: pip install -r requirements.txt | |
- run: mypy --install-types --non-interactive --strict --exclude 'lib64' . || true | |
- run: pylama *.py lib/*.py || true | |
- run: pylint *.py lib/*.py || true | |
- run: pyright . || true | |
- run: safety check --ignore 62044 | |
- run: ./loki.py -d & | |
- run: sleep 5 | |
- run: ./client.py -p LICENSE | |
- run: ./client.py -p ./test | |
- run: kill -TERM $(cat loki.pid) | |
- 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 |