Skip to content

Commit

Permalink
Try out coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Emrys-Merlin committed Sep 7, 2024
1 parent 4ca0daa commit d3cdc7b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ jobs:
- name: Install dependencies
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
uv run pytest --cov=web_watchr --cov-report term-missing --cov-report json:coverage-summary.json
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<!-- README.md -->
+ [![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

0 comments on commit d3cdc7b

Please sign in to comment.