Skip to content

Revert "Bump codecov/codecov-action from 3 to 4" #75

Revert "Bump codecov/codecov-action from 3 to 4"

Revert "Bump codecov/codecov-action from 3 to 4" #75

Workflow file for this run

name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
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@v3