Skip to content

Commit bbb64e3

Browse files
committed
👷 Add GitHub Actions for coverage with Smokeshow
1 parent 2eeac52 commit bbb64e3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/smokeshow.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Smokeshow
2+
3+
on:
4+
workflow_run:
5+
workflows: [Test]
6+
types: [completed]
7+
8+
permissions:
9+
statuses: write
10+
11+
jobs:
12+
smokeshow:
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Dump GitHub context
18+
env:
19+
GITHUB_CONTEXT: ${{ toJson(github) }}
20+
run: echo "$GITHUB_CONTEXT"
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.9'
24+
25+
- run: pip install smokeshow
26+
27+
- uses: dawidd6/[email protected]
28+
with:
29+
workflow: test.yml
30+
commit: ${{ github.event.workflow_run.head_sha }}
31+
32+
- run: smokeshow upload coverage-html
33+
env:
34+
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
35+
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100
36+
SMOKESHOW_GITHUB_CONTEXT: coverage
37+
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
39+
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}

0 commit comments

Comments
 (0)