From 34eb1a8a4972730ee7d6a2ad2c9e3faab8c2fae1 Mon Sep 17 00:00:00 2001 From: vepricov Date: Thu, 21 Nov 2024 20:22:47 +0300 Subject: [PATCH] test coverage --- .github/workflows/test.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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