Upload coverage report if check failed
@@ -129,4 +129,12 @@ jobs:
- name: "Combine & check coverage"
run: |
python -m coverage combine
+ python -m coverage html --skip-covered --skip-empty
python -m coverage report -i --fail-under=100
+ - name: "Upload report if check failed"
+ uses: actions/upload-artifact@v2
+ with:
+ name: coverage-report
+ path: htmlcov
+ if: ${{ failure() }}
+
