Skip to content

Commit

Permalink
add step for genbadge and push on gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMainguy committed Dec 4, 2023
1 parent a76dfc2 commit c8b5779
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/binette_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,19 @@ jobs:
- name: Test with pytest
run: |
mamba install pytest
pytest
mamba install pytest pytest-cov
pytest --cov=binette --cov-report=html --cov-report=xml
- name: Generate coverage badge
run: |
pip install genbadge[coverage]
genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
- name: Publish coverage report to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: htmlcov
branch: gh-pages

- name: Download test data
uses: actions/checkout@v3
Expand Down

0 comments on commit c8b5779

Please sign in to comment.