Bump codecov/codecov-action from 5 to 6 in the github-actions group #33
This file contains hidden or 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
| # Report code coverage to Codecov. | |
| name: Report coverage | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ['3.10', '3.14'] | |
| steps: | |
| - name: Check out code. | |
| uses: actions/checkout@v6 | |
| - name: Set up Python. | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| allow-prereleases: true | |
| - name: Install project. | |
| run: pip install --editable .[dev] | |
| - name: Measure code coverage. | |
| run: pytest --cov --cov-report=xml | |
| - name: Upload coverage report. | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| files: ./build/coverage/coverage.xml |