51
51
- name : Install GitHubActionsTestLogger
52
52
run : dotnet add ClickHouse.Client.Tests/ClickHouse.Client.Tests.csproj package GitHubActionsTestLogger --no-restore
53
53
54
+ - name : Install pycobertura
55
+ if : ${{ inputs.coverage }}
56
+ run : pip install pycobertura
57
+
54
58
- name : Install coverlet
55
59
if : ${{ inputs.coverage }}
56
60
run : |
@@ -74,30 +78,14 @@ jobs:
74
78
name : coverage
75
79
path : ./ClickHouse.Client/coverage.cobertura.xml
76
80
77
- report-coverage :
78
- name : Report coverage
79
- needs : build-and-test
80
- if : ${{ inputs.coverage }}
81
- runs-on : ubuntu-latest
82
- steps :
83
- - name : Checkout
84
- uses : actions/checkout@v4
85
-
86
- - name : Download coverage
87
- uses : actions/download-artifact@v4
88
- with :
89
- name : coverage
90
- path : ${{ github.workspace }}/ClickHouse.Client
91
-
92
- - name : Install pycobertura
93
- run : pip install pycobertura
94
-
95
- - name : Set status checks
96
- env :
97
- GITHUB_TOKEN : ${{ github.token }}
98
- run : python ${{ github.workspace }}/.github/coverage-status.py
99
- --coverage-file ./ClickHouse.Client/coverage.cobertura.xml
100
- --repository ${{ github.repository }} --sha ${{ github.event.pull_request.head.sha || github.sha }}
101
-
102
- - name : Report summary
103
- run : pycobertura show ./ClickHouse.Client/coverage.cobertura.xml --format markdown >> $GITHUB_STEP_SUMMARY
81
+ - name : Set status checks
82
+ if : ${{ inputs.coverage }}
83
+ env :
84
+ GITHUB_TOKEN : ${{ github.token }}
85
+ run : python ${{ github.workspace }}/.github/coverage-status.py
86
+ --coverage-file ./ClickHouse.Client/coverage.cobertura.xml
87
+ --repository ${{ github.repository }} --sha ${{ github.event.pull_request.head.sha || github.sha }}
88
+
89
+ - name : Report summary
90
+ if : ${{ inputs.coverage }}
91
+ run : pycobertura show ./ClickHouse.Client/coverage.cobertura.xml --format markdown >> $GITHUB_STEP_SUMMARY
0 commit comments