Python Test Coverage Report #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Test Coverage Report | |
on: | |
workflow_run: | |
workflows: ["Python Test Coverage"] | |
types: | |
- completed | |
jobs: | |
python-test-coverage-report: | |
runs-on: ubuntu-latest | |
if: github.event.workflow_run.conclusion == 'success' | |
continue-on-error: false | |
defaults: | |
run: | |
working-directory: python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download coverage report | |
uses: actions/download-artifact@v4 | |
with: | |
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} | |
run-id: ${{ github.event.workflow_run.id }} | |
path: ./python | |
merge-multiple: true | |
- name: Display structure of downloaded files | |
run: ls | |
- name: Pytest coverage comment | |
id: coverageComment | |
uses: MishaKav/pytest-coverage-comment@main | |
with: | |
pytest-coverage-path: python/python-coverage.txt | |
title: "Python Test Coverage Report" | |
badge-title: "Python Test Coverage" | |
junitxml-title: "Python Unit Test Overview" | |
junitxml-path: python/pytest.xml | |
default-branch: "main" | |
report-only-changed-files: true |