From 22391c5b1fc1355fc784169d94defc7e735064fd Mon Sep 17 00:00:00 2001 From: Omkar Mujumdar Date: Wed, 12 Nov 2025 12:51:48 +0530 Subject: [PATCH] Replace gist-based coverage badge with Codecov badge - Remove dynamic-badges-action step that required GIST_SECRET and GIST_ID - Update README.md to use Codecov badge instead of placeholder - Codecov badge automatically updates from existing codecov upload step This fixes the 404 gist error in the CI workflow. --- .github/workflows/c-cpp.yml | 13 ------------- README.md | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index fdb1d34..3597543 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -138,19 +138,6 @@ jobs: path: build/libApraLinuxUtils.a retention-days: 30 - - name: Create coverage badge - uses: schneegans/dynamic-badges-action@v1.7.0 - if: github.ref == 'refs/heads/main' - with: - auth: ${{ secrets.GIST_SECRET }} - gistID: ${{ secrets.GIST_ID }} - filename: apralinuxutils-coverage.json - label: Coverage - message: ${{ steps.coverage.outputs.COVERAGE_PERCENT }}% - valColorRange: ${{ steps.coverage.outputs.COVERAGE_PERCENT }} - maxColorRange: 90 - minColorRange: 50 - - name: Comment coverage on PR if: github.event_name == 'pull_request' uses: actions/github-script@v7 diff --git a/README.md b/README.md index cbeab4b..79b7a42 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![C++14](https://img.shields.io/badge/C++-14-blue.svg)](https://isocpp.org/std/the-standard) [![Platform](https://img.shields.io/badge/platform-Linux-lightgrey.svg)](https://www.linux.org/) -[![Code Coverage](https://img.shields.io/badge/coverage-report-green.svg)](#) +[![codecov](https://codecov.io/gh/Apra-Labs/ApraLinuxUtils/branch/main/graph/badge.svg)](https://codecov.io/gh/Apra-Labs/ApraLinuxUtils) A comprehensive C++ utility library designed for embedded Linux systems, providing hardware interface abstractions and utilities for I2C, GPIO, PWM, USB storage, and multi-threaded applications.