|
1 | | -# This file was generated from bswck/[email protected]131-g4aee5bf. |
| 1 | +# This file was generated from bswck/[email protected]150-gf81555e. |
2 | 2 | # Instead of changing this particular file, you might want to alter the template: |
3 | | -# https://github.com/bswck/skeleton/tree/0.0.2rc-131-g4aee5bf/project/.github/workflows/%23%25%20if%20tests%20and%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja |
| 3 | +# https://github.com/bswck/skeleton/tree/0.0.2rc-150-gf81555e/project/.github/workflows/%23%25%20if%20tests%20and%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja |
4 | 4 |
|
5 | 5 | # IMPORTANT! |
6 | 6 | # Pinned versions of actions and Poetry are managed in a different repository. |
7 | 7 | # Do not submit PRs to this file unless for this repo specifically. |
8 | 8 | # To change this workflow globally, submit a PR to https://github.com/bswck/skeleton. |
9 | 9 |
|
10 | | -name: "Upload Coverage" |
| 10 | +name: "Coverage" |
11 | 11 |
|
12 | 12 | on: |
13 | 13 | workflow_run: |
|
35 | 35 | - run: "gh run download ${{github.event.workflow_run.id}} --dir .covfiles/" |
36 | 36 | env: |
37 | 37 | GH_TOKEN: "${{github.token}}" |
38 | | - - run: "poetry run coverage combine --append .covfiles/*" |
| 38 | + - name: "Combine coverage data files from multicontextual runs" |
| 39 | + run: "poetry run coverage combine --append .covfiles/*" |
| 40 | + - name: "Show coverage report" |
| 41 | + run: "poetry run coverage report --show-missing --fail-under=0" |
39 | 42 | - name: "Upload coverage data file" |
40 | 43 | uses: "actions/upload-artifact@v4" |
41 | 44 | with: |
@@ -63,15 +66,15 @@ jobs: |
63 | 66 | needs: "combine" |
64 | 67 | if: "${{github.event.workflow_run.pull_requests[0]}}" |
65 | 68 | runs-on: "ubuntu-latest" |
66 | | - environment: "Upload Coverage" |
| 69 | + environment: "Coverage" |
67 | 70 | steps: |
68 | 71 | - uses: "actions/checkout@v4" |
69 | 72 | - uses: "actions/download-artifact@v4" |
70 | 73 | with: |
71 | 74 | name: "coverage-xml" |
72 | 75 | merge-multiple: true |
73 | 76 | - name: "Upload coverage reports to Codecov" |
74 | | - uses: "codecov/codecov-action@v3" |
| 77 | + uses: "codecov/codecov-action@v4" |
75 | 78 | with: |
76 | 79 | files: "coverage.xml" |
77 | 80 | env: |
|
81 | 84 | needs: "combine" |
82 | 85 | if: "${{github.event.workflow_run.head_branch == 'main'}}" |
83 | 86 | runs-on: "ubuntu-latest" |
84 | | - environment: "Upload Coverage" |
| 87 | + environment: "Coverage" |
85 | 88 | steps: |
86 | 89 | - uses: "actions/checkout@v4" |
87 | 90 | - name: "Install Poetry" |
|
0 commit comments