Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing with GitHub coverage upload #160

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

zacharyburnett
Copy link
Collaborator

No description provided.

@zacharyburnett zacharyburnett self-assigned this Jun 21, 2024
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch 13 times, most recently from 97b9a5a to aece2d2 Compare June 25, 2024 19:19
Comment on lines 43 to 59
report_diff_coverage:
needs: [ test ]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- run: pip install diff-cover coverage
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: pip install .
- uses: actions/download-artifact@v4
with:
name: .coverage
- run: coverage xml
- run: diff-cover coverage.xml --compare-branch origin/${{ github.base_ref }} --markdown-report $GITHUB_STEP_SUMMARY
Copy link
Collaborator Author

@zacharyburnett zacharyburnett Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generates report on diff coverage (requires coverage files to be uploaded first as artifacts)

@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch 3 times, most recently from fff3185 to 6552b4d Compare June 25, 2024 19:37
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch from 6552b4d to 3b1906f Compare June 25, 2024 19:38
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch 2 times, most recently from 4c1b986 to 80c0cc8 Compare June 26, 2024 17:31
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch from 80c0cc8 to ac9c104 Compare June 26, 2024 17:37
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch 2 times, most recently from b4130ad to 67b44ce Compare June 27, 2024 17:30
@zacharyburnett zacharyburnett force-pushed the test/tox_github_coverage branch from 67b44ce to 658bf0f Compare June 27, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant