add coverage results for python #1
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
# Workflow to codecov | |
name: Run codecov | |
# Runs on push to any branch | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
# Workflow can be triggered manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Run tests | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout | |
- uses: actions/setup-node@v1 | |
name: Set up with Node 16 | |
with: | |
node-version: '16.x' | |
- name: Install CI dependencies | |
run: npm ci | |
- name: Run unit tests with code coverage | |
run: npm run coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
timeout-minutes: 1 |