Test uploading pytest results
@@ -27,7 +27,13 @@ jobs:
run: |
pip install pytest
pip install pytest-cov
- pytest hassio-google-drive-backup/tests --cov=hassio-google-drive-backup/backup --cov-report=xml --cov-report=html
+ pytest hassio-google-drive-backup/tests --junitxml=junit/test-results}.xml --cov=hassio-google-drive-backup/backup --cov-report=xml --cov-report=html
+ - name: Upload pytest test results
+ uses: actions/upload-artifact@v2
+ with:
+ name: pytest-results
+ path: junit/test-results.xml
+ if: ${{ always() }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
