update codecov workflow #4
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: Codecov Workflow | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Test python scripts | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install requirements | |
run: pip install -r scripts/codecov-requirements.txt | |
- name: Run tests and collect coverage | |
run: pytest --cov=build_and_push scripts/. | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |