Skip to content

Commit a48d462

Browse files
committed
use newest smokeshow
1 parent 7920cb9 commit a48d462

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/coverage.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ permissions:
1010

1111
jobs:
1212
smokeshow:
13-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1413
runs-on: ubuntu-latest
1514

1615
steps:
1716
- uses: actions/setup-python@v5
1817
with:
1918
python-version: '3.12'
2019

21-
- run: pip install smokeshow
20+
- run: pip install 'smokeshow>=0.5'
2221

2322
- uses: dawidd6/action-download-artifact@v6
2423
with:
@@ -27,6 +26,7 @@ jobs:
2726
allow_forks: true
2827

2928
- run: smokeshow upload coverage-html
29+
if: hashFiles('coverage-html/*.html') != ''
3030
env:
3131
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
3232
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 95
@@ -36,8 +36,10 @@ jobs:
3636
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
3737

3838
- run: smokeshow upload diff-coverage-html
39+
if: hashFiles('diff-coverage-html/*.html') != ''
3940
env:
40-
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Diff coverage report
41+
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Diff coverage {coverage-percentage}
42+
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 95
4143
SMOKESHOW_GITHUB_CONTEXT: diff-coverage
4244
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4345
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)