Open krkeegan opened 3 years ago
Hi @krkeegan ,
I think the problem since you not create pytest-coverage.txt. Please use:
- name: Build coverage file
run: |
pytest --cache-clear --cov=app test/ > pytest-coverage.txt
- name: Comment coverage
uses: coroo/pytest-coverage-commentator@v1.0.2
I think for your case should be:
- name: Test with pytest
run: |
pytest --cache-clear --cov-report term:skip-covered --cov=app tests/ > pytest-coverage.txt
- name: Comment coverage
uses: coroo/pytest-coverage-commentator@v1.0.2
Hmm piping the output to tee should be creating pytest-coverge.txt. It certainly does locally. I would prefer to tee the output so that I can still get the failures in the terminal output.
Have the same issue. Found solution on similar GitHub Action: Pytest Coverage Comment
It uses tee
in every example :)
I am getting the error Workflow failed! Resource not accessible by integration
I am using the following workflow. Everything works fine if I comment out the Comment Coverage step.