Upload coverage report if check failed
MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -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() }}
+

Upload coverage report if check failed