Skip to content

Upload coverage

Upload coverage #1

name: Upload coverage
on:
workflow_run:
workflows: [Test workflow]
types:
- completed
jobs:
upload_coverage:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: download coverage reports
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}