-
Notifications
You must be signed in to change notification settings - Fork 13
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
add option to generate test coverage report without codecov #207
base: main
Are you sure you want to change the base?
add option to generate test coverage report without codecov #207
Conversation
8a31636
to
fba02a5
Compare
I tried this out on sunpy and it seems to explode. sunpy/sunpy#7668 |
It seems that it's not picking up the coverage.xml to upload here: https://github.com/sunpy/sunpy/actions/runs/9445798095/job/26014155532?pr=7668#step:14:16 🤔 |
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.
Thanks so much for taking a swing at this!
.github/workflows/tox.yml
Outdated
- run: python -Im pip install --upgrade coverage[toml] | ||
- run: python -Im coverage combine | ||
- run: python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY | ||
|
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.
I think it would be nice to add the ability to fail this job based on either total coverage % or diff coverage %.
tl;dr -- this does not generate patch coverage, right? |
Not yet, but I found a way to make it. |
For patch coverage we'd need to store the coverage from |
325b539
to
156160e
Compare
I am trying this out too at spacetelescope/acstools#205 and it still crashes: https://github.com/spacetelescope/acstools/actions/runs/9463279566/job/26068438067?pr=205 |
oh whoops, I fixed the artifact issue: |
d8c63d1
to
c5b70cf
Compare
c5b70cf
to
f891927
Compare
f891927
to
430ed7e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Even when CI passes, it failed with the same error.
|
it should be uploading / downloading the |
it looks like pytest --pyargs acstools --cov-report=xml --cov=acstools /home/runner/work/acstools/acstools/doc --cov --remote-data -v |
running
|
What is the difference between |
I'm not intimately familiar with it, but as far as I know We could use |
Tried to debug at #209 but no luck. I see the coverage ran but the the upload failed: https://github.com/spacetelescope/acstools/actions/runs/9483014271/job/26134042811?pr=205 |
could you also add |
Ah, yes, added. New log: https://github.com/spacetelescope/acstools/actions/runs/9483014271/job/26138000458?pr=205 |
44d93ed
to
7595dcc
Compare
@zacharyburnett is this ready for re-review or you still working on it? Thanks! |
This is ready now, thanks!
Oh I didn't even see that 😅 |
Alas, still cannot get this to work with acstools. What am I doing wrong there? https://github.com/spacetelescope/acstools/actions/runs/9669917380/job/26677517727?pr=205 |
I'm not sure, this seems to be correct but the |
A lot of CI only outputs |
It was my belief that EDIT: wait a second, I just cloned |
Here is the updated error log https://github.com/spacetelescope/acstools/actions/runs/9669917380/job/26717352610?pr=205 |
Maybe the coverage stuff is inside |
ah! You're using that might explain why it worked locally on my machine; perhaps there's some shell shenanigans going on with github actions |
|
2601dc6
to
0625ebf
Compare
looks like that fixed it https://github.com/spacetelescope/acstools/actions/runs/9683845227/attempts/1#summary-26720539461 thanks for being so patient! 😄 |
the failing |
Awesome, thanks! Now that the simple case of acstools works, I plan to open an experimental PR to |
sure thing, here: astropy/astropy#16619 I don't have permissions to label that PR though |
@astrofrog , do you want to take this for a spin on your repos? |
using the guide here: https://hynek.me/articles/ditch-codecov-python/
This does not create coverage diffs or report to PRs, just creates a markdown summary table
closes #189
EDIT: here's what the summary table looks like: