File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,16 +85,23 @@ jobs:
8585
8686 # On PR: generates coverage comment artifact. On push to main: stores coverage baseline on data branch.
8787 - name : Store unit tests coverage
88+ id : coverage_comment
8889 if : matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name != 'schedule'
8990 uses : py-cov-action/python-coverage-comment-action@7188638f871f721a365d644f505d1ff3df20d683 # v3.40
9091 with :
9192 GITHUB_TOKEN : ${{ github.token }}
9293 COVERAGE_PATH : integrations/kreuzberg
9394 SUBPROJECT_ID : kreuzberg
94- COMMENT_ARTIFACT_NAME : coverage-comment-kreuzberg
9595 MINIMUM_GREEN : 90
9696 MINIMUM_ORANGE : 60
9797
98+ - name : Upload coverage comment to be posted
99+ if : matrix.python-version == '3.10' && runner.os == 'Linux' && github.event_name == 'pull_request' && steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
100+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
101+ with :
102+ name : coverage-comment-kreuzberg
103+ path : integrations/kreuzberg/python-coverage-comment-action.txt
104+
98105 - name : Run integration tests
99106 run : hatch run test:integration-cov-append-retry
100107
@@ -105,7 +112,6 @@ jobs:
105112 GITHUB_TOKEN : ${{ github.token }}
106113 COVERAGE_PATH : integrations/kreuzberg
107114 SUBPROJECT_ID : kreuzberg-combined
108- COMMENT_ARTIFACT_NAME : coverage-comment-kreuzberg-combined
109115 MINIMUM_GREEN : 90
110116 MINIMUM_ORANGE : 60
111117
You can’t perform that action at this time.
0 commit comments