Skip to content

Bump codecov/codecov-action from 4 to 5 #263

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #263

Workflow file for this run

name: Python tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "${{matrix.python-version}}"
cache: "pip"
- name: Install Hatch
run: pip install --user --upgrade hatch
- name: Test with pytest
run: hatch run cov
env:
PYTHONDEVMODE: 1
- uses: codecov/codecov-action@v5
with:
name: "build-${{ matrix.python-version }}"
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}