1
- # This file was generated from bswck/skeleton@0bdf6a5 .
1
+ # This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33 .
2
2
# Instead of changing this particular file, you might want to alter the template:
3
- # https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/workflows/%23%25%20if%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja
3
+ # https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/%23%25%20if%20tests%20and%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja
4
+
5
+ # IMPORTANT!
6
+ # Pinned versions of actions and Poetry are managed in a different repository.
7
+ # Do not submit PRs to this file unless for this repo specifically.
8
+ # To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
4
9
5
10
name : " Upload Coverage"
6
11
@@ -22,16 +27,21 @@ jobs:
22
27
with :
23
28
python-version : " 3.8"
24
29
- run : " pip install smokeshow"
25
- - uses : " dawidd6/action- download-artifact@v2 "
30
+ - uses : " actions/ download-artifact@v4 "
26
31
with :
27
- workflow : " test.yml"
28
- commit : " ${{github.event.workflow_run.head_sha}}"
29
- - run : " smokeshow upload coverage-html"
32
+ pattern : " coverage-*"
33
+ path : " .covfiles/"
34
+ merge-multiple : true
35
+ - run : " coverage combine .covfiles/coverage-*"
36
+ - run : >
37
+ poetry run coverage html
38
+ --show-contexts
39
+ --title "autorefine coverage for ${{github.sha}}"
40
+ - run : " smokeshow upload coverage"
30
41
env :
31
- SMOKESHOW_GITHUB_STATUS_DESCRIPTION : " Coverage {coverage-percentage}"
32
- # 5 is set here while V2 is in development and coverage is far from complete
33
- SMOKESHOW_GITHUB_COVERAGE_THRESHOLD : 91
34
- SMOKESHOW_GITHUB_CONTEXT : " coverage"
35
- SMOKESHOW_GITHUB_TOKEN : " ${{secrets.GITHUB_TOKEN}}"
36
- SMOKESHOW_GITHUB_PR_HEAD_SHA : " ${{github.event.workflow_run.head_sha}}"
37
- SMOKESHOW_AUTH_KEY : " ${{secrets.SMOKESHOW_AUTH_KEY}}"
42
+ SMOKESHOW_GITHUB_STATUS_DESCRIPTION : " Coverage {coverage-percentage}"
43
+ SMOKESHOW_GITHUB_COVERAGE_THRESHOLD : 91
44
+ SMOKESHOW_GITHUB_CONTEXT : " coverage"
45
+ SMOKESHOW_GITHUB_TOKEN : " ${{secrets.GITHUB_TOKEN}}"
46
+ SMOKESHOW_GITHUB_PR_HEAD_SHA : " ${{github.event.workflow_run.head_sha}}"
47
+ SMOKESHOW_AUTH_KEY : " ${{secrets.SMOKESHOW_AUTH_KEY}}"
0 commit comments