diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4bed32..7f21585 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,11 +29,14 @@ jobs: - name: Testing run: | PYTHONPATH=src/ pytest tests/ --cov=relaxit --cov-report=xml - - name: Upload to Codecov - uses: codecov/codecov-action@v4 - with: - files: ./coverage.xml - # token: ${{secrets.CODECOV_TOKEN}} - version: "v0.1.15" - fail_ci_if_error: false - verbose: true + - name: Generate coverage badge + run: | + python src/badge_generator.py + + - name: Commit coverage badge + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add coverage-badge.svg + git commit -m "Update coverage badge" + git push