Closed jrwagz closed 1 year ago
In this same exact workflow, the comment created seemed to be correct:
The output coverage was not supported for pytest-xml-coverage-path
, I added support for this and release a new version, which you can use:
- name: Pytest Coverage Comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml
or use a specific version
- name: Pytest Coverage Comment
uses: MishaKav/pytest-coverage-comment@v1.1.41
with:
pytest-xml-coverage-path: ./coverage.xml
Fantastic work, thank you!
I have setup pytest with the following options:
https://github.com/jrwagz/cards-proj/blob/add-coverage-badge/pyproject.toml#L43
And then I configured my actions as follows:
https://github.com/jrwagz/cards-proj/blob/add-coverage-badge/.github/workflows/tests.yml#L32-L57
However, when I try get the coverage percentage as just a string, I get an object instead:
Am I doing something wrong?