Skip to content

Bump codecov/codecov-action from 5.4.0 to 5.4.2 #95

Bump codecov/codecov-action from 5.4.0 to 5.4.2

Bump codecov/codecov-action from 5.4.0 to 5.4.2 #95

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
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@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.0.0-beta
with:
token: ${{ secrets.CODECOV_TOKEN }}