MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
181 stars 60 forks source link

Warning in Summary if coverage.xml is used #83

Closed drakulavich closed 2 years ago

drakulavich commented 2 years ago

Thank you for the great action.

I've added to my GitHub workflow:

      - name: Pytest coverage comment
        uses: MishaKav/pytest-coverage-comment@main
        with:
          pytest-xml-coverage-path: ./coverage.xml
          junitxml-path: ./pytest.xml

But CI is complaining about pytest-coverage.txt which is not expected, I suppose.

File "/home/runner/work/REPO_NAME/./pytest-coverage.txt" doesn't exist
MishaKav commented 2 years ago

You are right, it's a bug. It's a warning and it doesn't affect the workflow in any case. I will fix it in the next version. Thanks

MishaKav commented 2 years ago

Release new version that fix this warning, you can use:

- name: Pytest Coverage Comment
  uses: MishaKav/pytest-coverage-comment@main

or use specific version

- name: Pytest Coverage Comment
  uses: MishaKav/pytest-coverage-comment@v1.1.34
drakulavich commented 2 years ago

Thank you, @MishaKav! warning is gone.