diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0bc831..6c3c7d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,15 @@ jobs: sys.exit(f"Coverage {pct:.2f}% is below the {THRESHOLD}% threshold") PY + # Powers the coverage badge on the repo/README - requires the CODECOV_TOKEN repo + # secret (from codecov.io, after activating this repo there). Separate from the + # threshold check above, which stays local and doesn't depend on this succeeding. + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./coverage + # Validates the package actually builds correctly across both target frameworks - this is # NOT a publish step, nothing here touches NuGet.org. No artifact is uploaded either, since # this is only a packaging sanity check, not a release. diff --git a/README.md b/README.md index eb9fc04..39455e5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Monnify .NET SDK [![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) +[![codecov](https://codecov.io/gh/Monnify/monnify-dotnet-lib/branch/main/graph/badge.svg)](https://codecov.io/gh/Monnify/monnify-dotnet-lib) [![NuGet](https://img.shields.io/nuget/v/Monnify.svg)](https://www.nuget.org/packages/Monnify) An idiomatic .NET SDK for the [Monnify](https://developers.monnify.com)