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

How can i create a coverage badge from action coverage.yml #193

Open
1letter opened this issue Nov 22, 2023 · 1 comment
Open

How can i create a coverage badge from action coverage.yml #193

1letter opened this issue Nov 22, 2023 · 1 comment

Comments

@1letter
Copy link
Sponsor

1letter commented Nov 22, 2023

@gforcada
Have you a solution or hint to create a badge with the coverage value? I see the summary table with the values but i have no idea to parse this.

@gforcada
Copy link
Sponsor Member

Oh, good point, no I have no idea about it unfortunately. I very much expect that it is possible.

In this case, rather the detailed table, you just want a number, and I very much expect that some utility from the python coverage tool might be able to extract this number from the XML files generated.

Then with GHA you can extract that number and make it available somehow(?) to this badge.

Given how popular are these badges, if you look at popular python projects that use them, you might get an idea how they are doing that 👍🏾

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

No branches or pull requests

2 participants