Skip to content

Commit

Permalink
add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdlangton committed Apr 9, 2024
1 parent 20bdec9 commit c1f2f0c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 15 deletions.
Binary file modified .coverage
Binary file not shown.
15 changes: 1 addition & 14 deletions .github/workflows/pytest.yml → .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pytest-coverage-commentator
name: pytest-coverage
on:
pull_request:
branches:
Expand Down Expand Up @@ -31,16 +31,3 @@ jobs:
id: verify-changed-files
with:
files: coverage.svg
- name: Commit files
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add coverage.svg
git commit -m "Updated coverage.svg"
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.github_token }}
branch: ${{ github.ref }}
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ install: ##
test: ##
coverage run -m pytest --nf
coverage report -m --fail-under=100
coverage-badge -f -o coverage.svg

publish: clean ##
poetry publish --build
21 changes: 21 additions & 0 deletions coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ uv = "^0.1.29"
isort = "^5.13.2"
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
coverage-badge = "^1.1.0"
ruff = "^0.3.5"
poetry = "^1.8.2"

Expand Down

0 comments on commit c1f2f0c

Please sign in to comment.