Skip to content

Commit

Permalink
chore: add pytest summary report
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-push committed Nov 1, 2023
1 parent ca22305 commit 5167f23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ jobs:
title: Coverage Report
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
# add content to GitHub summary
- name: Pytest coverage Github summary
if: ${{ success() && github.event_name == 'pull_request' }}
run: |
set -o pipefail
echo '# Coverage report :rocket:' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat pytest-coverage.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo '\n\n\n'
echo '${{ steps.coverageComment.outputs.coverageHtml }}' >> $GITHUB_STEP_SUMMARY

0 comments on commit 5167f23

Please sign in to comment.