Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit cfae784

Browse files
authored
Use single step in reusable workflow (#437)
1 parent 5712252 commit cfae784

File tree

1 file changed

+15
-27
lines changed

1 file changed

+15
-27
lines changed

.github/workflows/reusable.yml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
- name: Install GitHubActionsTestLogger
5252
run: dotnet add ClickHouse.Client.Tests/ClickHouse.Client.Tests.csproj package GitHubActionsTestLogger --no-restore
5353

54+
- name: Install pycobertura
55+
if: ${{ inputs.coverage }}
56+
run: pip install pycobertura
57+
5458
- name: Install coverlet
5559
if: ${{ inputs.coverage }}
5660
run: |
@@ -74,30 +78,14 @@ jobs:
7478
name: coverage
7579
path: ./ClickHouse.Client/coverage.cobertura.xml
7680

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

Comments
 (0)