Skip to content

Commit

Permalink
updated badge mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
maniospas committed May 16, 2024
1 parent 90843cc commit d658da8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
run: pytest -x --cov=fairbench --cov-report=xml --cov-report=html
- name: Generate coverage badge
run: coverage-badge -o coverage.svg -f
- name: Upload coverage badge
uses: actions/upload-artifact@v3
with:
name: coverage-badge
path: coverage.svg
- name: Commit coverage badge
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add coverage.svg
git commit -m 'Update coverage badge'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d658da8

Please sign in to comment.