Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Update build to integrate code coverage (#194)
Browse files Browse the repository at this point in the history
* Update benchmark_scripts.yml
  • Loading branch information
jfomhover authored Dec 9, 2021
1 parent aceaa08 commit bf90d31
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/benchmark_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,28 @@ jobs:
- name: Test with pytest
run: |
python -m pytest tests/ --junitxml=test-build-result.xml
python -m pytest tests/ --junitxml=test-build-result.xml --cov=src/ --cov-report xml:coverage.xml
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
check_name: Unit Test Results for Build
github_token: ${{ secrets.GITHUB_TOKEN }}
files: test-build-result.xml

- name: Code Coverage Summary Report
uses: irongut/[email protected]
# uses: joshjohanning/[email protected]
with:
filename: coverage.xml
badge: true
hide_complexity: true
format: 'markdown'
output: 'both'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md

0 comments on commit bf90d31

Please sign in to comment.