From 1bde4333a19867e2a0570622d931e9e584b74479 Mon Sep 17 00:00:00 2001 From: ashwin31 Date: Wed, 18 Feb 2026 00:16:57 +0530 Subject: [PATCH] fix: replace coverage-badge with genbadge for badge generation coverage-badge depends on pkg_resources which was removed in setuptools 82+, causing the badge generation step to fail in CI. Switch to genbadge[coverage] which reads from coverage.xml directly. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12935108..ef61e579 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,8 +60,8 @@ jobs: if: github.ref == 'refs/heads/master' && github.event_name == 'push' working-directory: backend run: | - pip install coverage-badge - coverage-badge -o ../coverage-badge.svg -f + pip install "genbadge[coverage]" + genbadge coverage -i coverage.xml -o ../coverage-badge.svg - name: Commit coverage badge if: github.ref == 'refs/heads/master' && github.event_name == 'push'