Backup coordinator infos to Domoticz and makes the all Domoticz backup/restore more resilient #1236
Workflow file for this run
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: Python check | |
on: | |
push: | |
branches: | |
- develop | |
- stable6 | |
paths: | |
- "**.py" | |
pull_request: | |
paths: | |
- "**.py" | |
jobs: | |
lint_python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade | |
- run: bandit -r . || true | |
- run: black --check . || true | |
- run: codespell --quiet-level=2 --skip="./www" || true # --ignore-words-list="" | |
# `--builtins=Devices,Parameters` should be removed once domoticz/domoticz#4720 or simlar has been released | |
- run: flake8 . --builtins=Devices,Parameters,Connection --count --select=E9,F63,F7,F82 --show-source --statistics | |
- run: isort --check-only --profile black . || true | |
- run: pip install -r requirements.txt || true | |
- run: mypy --ignore-missing-imports . || true | |
- run: pytest . || true | |
- run: pytest --doctest-modules . || true | |
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true |