Skip to content

Commit

Permalink
add coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Muñoz committed May 7, 2024
1 parent bc6ffa6 commit 3bc3162
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov
python -m pip install pytest pytest-cov coverage-badge
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
Expand All @@ -42,6 +42,13 @@ jobs:
thresholdAll: 0.8
thresholdNew: 0.9
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload badge
if: ${{ matrix.python-version == '3.12' }}
run: |
coverage-badge -o coverage.svg
git add coverage.svg
git commit -m "Add coverage badge"
git push
macos:

Expand Down

0 comments on commit 3bc3162

Please sign in to comment.