Update pytest.yml
Fix yaml syntax
@@ -3,10 +3,6 @@ on: [push]
jobs:
run-pytest:
runs-on: ubuntu-latest
- strategy:
- matrix:
- python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
-
steps:
- uses: actions/checkout@v2
- name: Set up Python
@@ -25,4 +21,6 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
- pytest
+ pip install pytest
+ pip install pytest-cov
+ pytest hassio-google-drive-backup/tests --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
