Skip to content

Upload coverage

Upload coverage #28

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: Setup python
uses: actions/setup-python@v5
- name: Install codecov
run: pip install codecov-cli
- name: Send codecov notifications
run: codecovcli send-notifications -C "$SHA" -t "$CODECOV_TOKEN"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
SHA: ${{ github.event.workflow_run.head_sha }}