Skip to content

Commit

Permalink
Adding coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalioby committed Jun 17, 2023
1 parent 1c5a8af commit 6750b71
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/basic_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,28 @@ jobs:
cd example
coverage run manage.py test
coverage report
- name: Coverage Badge
uses: tj-actions/coverage-badge-py@v2
with:
working-directory: example

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v14
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 }}

0 comments on commit 6750b71

Please sign in to comment.