also upload from all python versions to codecov #70
Workflow file for this run
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
name: Check & Publish Coverage | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
paths: | |
- '.github/workflows/check-coverage.yml' | |
- 'codecov.yml' | |
permissions: | |
id-token: write | |
jobs: | |
python: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ | |
"3.9", | |
"3.10", | |
"3.11", | |
"3.12", | |
"3.13" | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run coverage | |
run: | | |
uv run --no-default-groups --group cov coverage run --context=${{ matrix.python-version }} -m pytest | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
use_oidc: true |