Skip to content

Commit 148770c

Browse files
authored
Merge pull request #23 from Monnify/dev
ci: upload coverage to Codecov for the repo/README badge
2 parents d2b40b9 + ae357af commit 148770c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
sys.exit(f"Coverage {pct:.2f}% is below the {THRESHOLD}% threshold")
7373
PY
7474
75+
# Powers the coverage badge on the repo/README - requires the CODECOV_TOKEN repo
76+
# secret (from codecov.io, after activating this repo there). Separate from the
77+
# threshold check above, which stays local and doesn't depend on this succeeding.
78+
- name: Upload coverage reports to Codecov
79+
uses: codecov/codecov-action@v5
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
82+
directory: ./coverage
83+
7584
# Validates the package actually builds correctly across both target frameworks - this is
7685
# NOT a publish step, nothing here touches NuGet.org. No artifact is uploaded either, since
7786
# this is only a packaging sanity check, not a release.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Monnify .NET SDK
22

33
[![CI](https://github.com/Monnify/monnify-dotnet-lib/actions/workflows/ci.yml/badge.svg)](https://github.com/Monnify/monnify-dotnet-lib/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/Monnify/monnify-dotnet-lib/branch/main/graph/badge.svg)](https://codecov.io/gh/Monnify/monnify-dotnet-lib)
45
[![NuGet](https://img.shields.io/nuget/v/Monnify.svg)](https://www.nuget.org/packages/Monnify)
56

67
An idiomatic .NET SDK for the [Monnify](https://developers.monnify.com)

0 commit comments

Comments
 (0)