From a6dc7c9578256a0ca656f1d018c98d9695a3895f Mon Sep 17 00:00:00 2001 From: DC Date: Tue, 17 Feb 2026 16:33:16 -0700 Subject: [PATCH] test: add coverage badge to README and upload to codecov --- .github/workflows/ci.yml | 7 +++++++ README.md | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d650f13..59de98c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,3 +47,10 @@ jobs: name: coverage-report path: coverage/ if-no-files-found: error + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage/lcov.info + fail_ci_if_error: true diff --git a/README.md b/README.md index 7715c91..941d365 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Synapse -![Coverage](https://github.com/alchemydc/synapse/actions/workflows/ci.yml/badge.svg) +[![Tests](https://github.com/alchemydc/synapse/actions/workflows/ci.yml/badge.svg)](https://github.com/alchemydc/synapse/actions/workflows/ci.yml) +[![Coverage](https://codecov.io/gh/alchemydc/synapse/branch/main/graph/badge.svg)](https://codecov.io/gh/alchemydc/synapse) Synapse is an intelligent community digest bot designed to aggregate, summarize, and distribute conversations from your community platforms. It helps teams stay on top of important discussions without getting lost in the noise.