Skip to content

explicit path codecov #22

explicit path codecov

explicit path codecov #22

Workflow file for this run

name: CodeCov
on:
pull_request:
branches: [ main ]
paths-ignore:
- '*.md'
- '*.rst'
- 'README*'
- 'LICENSE'
- 'docs/**'
jobs:
codecov:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{github.workspace}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pytest
pip install pytest-cov
pip install -e .
- name: Generate coverage report
run: |
pytest --cov=./ --cov-report=xml:coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
verbose: true