Skip to content

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

Bump codecov/codecov-action from 4 to 5

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

name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest]
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 dependencies
run: |
pip install flake8 pytest-cov
- name: Lint
run: |
flake8 .
- name: Build
run: |
pip install -e .
- name: Test
run: |
pytest --cov --cov-report=xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}