From b4a669941e4390d0265deed166a7b8825119fc1e Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Sat, 7 Sep 2024 16:06:48 +0200 Subject: [PATCH] Next try coverage badge --- .github/workflows/ci.yml | 10 +++++----- Makefile | 2 +- README.md | 3 --- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 301942b..fb32e22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: run: | make run-ci - - name: Update Coverage Badge - # GitHub actions: default branch variable - # https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable - if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) - uses: we-cli/coverage-badge-action@main + - name: Create coverage badge + uses: gaelgirodon/ci-badges-action@v1 + with: + gist-id: ${{ vars.GIST_ID_BADGES }} + token: ${{ secrets.GIST_TOKEN }} diff --git a/Makefile b/Makefile index 8af41cb..2135a4d 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,4 @@ run-ci: pip install uv uv venv uv pip install -e ".[dev]" - uv run pytest --cov=web_watchr --cov-report term-missing --cov-report json:coverage-summary.json + uv run pytest --cov=web_watchr --cov-report term-missing --cov-report lcov:lcov.info diff --git a/README.md b/README.md index 3b5c9a1..1e3f682 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,2 @@ - -+ [![cov](https://Emrys-Merlin.github.io/web_watchr/badges/coverage.svg)](https://github.com/Emrys-Merlin/web_watchr/actions) - # WebWatchr A bot that monitors a website and publishes changes via telegram