Publish coverage report #1
Workflow file for this run
This file contains 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 | |
on: | |
workflow_run: | |
workflows: ["Python tests"] | |
types: | |
- completed | |
branches: | |
- main | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download coverage artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: coverage | |
path: .coverage | |
- name: Generate coverage report | |
run: | | |
pip install coverage | |
coverage xml coverage.xml | |
- name: Get coverage | |
uses: orgoro/coverage | |
with: | |
coverageFile: coverage.xml | |
token: ${{ secrets.GITHUB_TOKEN }} |