juanep97 / iop4

IOP4, the Interactive Optical Photo-Polarimetric Python Pipeline.
https://juanep97.github.io/iop4/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Add coverage report as new step in CI #117

Open morcuended opened 3 months ago

morcuended commented 3 months ago

closes #45

morcuended commented 3 months ago

Ready. Now coverage is reported in every pull request under the Actions tab.

image

morcuended commented 3 months ago

Still I think the coverage report should be posted automatically in a comment instead of the Actions page.

morcuended commented 3 months ago

We can try to add the result as a comment in this PR or a new one, as you prefer.

Let's do it here. I will explore the two options (an already existing action that upload the coverage report as a comment or use GH action script to create the comment manually)

juanep97 commented 3 months ago

Would something like https://github.com/orgs/community/discussions/69944#discussioncomment-7269357 work?

morcuended commented 3 months ago

Would something like https://github.com/orgs/community/discussions/69944#discussioncomment-7269357 work?

Could be, to be tried. Maybe we can generate the table in markdown format as shown above and post it as a comment.

The problem with the action I just tried py-cov-action/python-coverage-comment-action is that self-hosted runners need extra configuration to make it work.