-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move badge generation into pipeline to remove GIST dependency
- Loading branch information
1 parent
32ccd92
commit f8bb467
Showing
3 changed files
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ jobs: | |
coverage run -m pytest --junitxml=./reports/test-results-${{ env.PYTHON_VERSION }}.xml | ||
coverage html -d ./reports/htmlcov | ||
coverage xml -o ./reports/coverage.xml | ||
genbadge coverage -i ./reports/coverage.xml -o ./reports/htmlcov/coverage-badge.svg | ||
coverage report -m | ||
- name: Add coverage reports | ||
|
@@ -83,17 +84,6 @@ jobs: | |
pytest-xml-coverage-path: ./reports/coverage.xml | ||
junitxml-path: ./reports/test-results-${{ env.PYTHON_VERSION }}.xml | ||
|
||
- name: Create coverage badge | ||
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.GIST_SECRET }} | ||
gistID: 019787fcdec96f05d6c53367bbf2b949 | ||
filename: ensembl-utils_badge.json | ||
label: Coverage | ||
message: ${{ steps.coverage_report.outputs.coverage }} | ||
color: ${{ steps.coverage_report.outputs.color }} | ||
|
||
- name: Deploy documentation to GitHub Pages | ||
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ dependencies = [ | |
cicd = [ | ||
"black", | ||
"coverage", | ||
"genbadge[coverage]", | ||
"mypy", | ||
"pylint", | ||
"pytest", | ||
|
f8bb467
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report