Skip to content

Commit

Permalink
coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfox committed Feb 10, 2024
1 parent 2ec9347 commit 6991b8b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ jobs:
which pg_config
coverage run -m pytest
coverage report
coverage report -m
- 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: tj-actions/coverage-badge-py@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ bin/chromedriver
bin/latest
bin/nginx-1.18.0/
bin/nginx/
.pytest_cache
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
+ [![cov](https://staticfox.github.io/sirendb/badges/coverage.svg)](https://github.com/staticfox/sirendb/actions)


SirenDB
=======

Expand Down

0 comments on commit 6991b8b

Please sign in to comment.