Fix publishing test results
@@ -27,13 +27,18 @@ jobs:
run: |
pip install pytest
pip install pytest-cov
- pytest hassio-google-drive-backup/tests --junitxml=junit/test-results}.xml --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: Publish Unit Test Results
+ uses: EnricoMi/publish-unit-test-result-action@v1
+ if: always()
+ with:
+ files: junit/**/*.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
