Update pythonapp.yml

This commit is contained in:
2019-11-21 21:48:16 +03:00
committed by GitHub
parent 6df38ab47e
commit c9a454a037
+6 -5
View File
@@ -15,6 +15,7 @@ jobs:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get install -y libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libavresample-dev libavfilter-dev
python -m pip install --upgrade pip
pip install homeassistant
- name: Hass check config
@@ -24,12 +25,12 @@ jobs:
! less check.output | grep -q ERROR
- name: Lint with flake8
run: |
pip install flake8
# pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
#pip install pytest
#pytest