Skip to content

Commit c45203a

Browse files
lauriebaxillyakaynov-vbti
authored andcommitted
add comment with coverage results to pr
1 parent 3bda73a commit c45203a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pr_stage_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- ".pre-commit-config-zh-cn.yaml"
1919
- "examples/**"
2020

21+
2122
concurrency:
2223
group: ${{ github.workflow }}-${{ github.ref }}
2324
cancel-in-progress: true
@@ -98,6 +99,8 @@ jobs:
9899
python-version: ['3.10']
99100
torch: ['2.4.1']
100101
cuda: ['cu118']
102+
permissions:
103+
pull-requests: write
101104
steps:
102105
- uses: actions/checkout@v3
103106
- name: Set up Python ${{ matrix.python-version }}
@@ -123,6 +126,14 @@ jobs:
123126
uses: irongut/[email protected]
124127
with:
125128
filename: coverage.xml
129+
format: markdown
130+
hide_branch_rate: false
131+
- name: Add Coverage PR Comment
132+
uses: marocchino/sticky-pull-request-comment@v2
133+
if: github.event_name == 'pull_request'
134+
with:
135+
recreate: true
136+
path: code-coverage-results.md
126137

127138
# build_windows:
128139
# runs-on: windows-2022

0 commit comments

Comments
 (0)