mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 03:55:22 +00:00
codecov: add code report as pr comment
This commit is contained in:
parent
eabd8b91ff
commit
0605ede07e
15
.github/workflows/codecov.yml
vendored
15
.github/workflows/codecov.yml
vendored
@ -23,6 +23,21 @@ jobs:
|
|||||||
- name: Create XML report
|
- name: Create XML report
|
||||||
run: coverage xml
|
run: coverage xml
|
||||||
|
|
||||||
|
- name: Produce the coverage report
|
||||||
|
uses: insightsengineering/coverage-action@v2
|
||||||
|
with:
|
||||||
|
path: coverage.xml
|
||||||
|
# Publish the rendered output as a PR comment
|
||||||
|
publish: true
|
||||||
|
# Create a coverage diff report.
|
||||||
|
diff: true
|
||||||
|
# Branch to diff against.
|
||||||
|
diff-branch: next
|
||||||
|
# This is where the coverage reports for the
|
||||||
|
# `diff-branch` are stored.
|
||||||
|
diff-storage: _xml_coverage_reports
|
||||||
|
togglable-report: true
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user