Skip to content

Update codecov uploads #7

Update codecov uploads

Update codecov uploads #7

Workflow file for this run

name: Test
on:
push:
branches:
- default
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install
run: |
python -m pip install -U pip
python -m pip install -e ".[test]"
- name: Run tests (warnings as errors)
env:
PYTHONWARNINGS: error
run: |
python -m coverage run -m pytest
python -m coverage xml
- name: Upload coverage to Codecov
if: github.event_name == 'push'
uses: codecov/codecov-action@v5
with:
files: coverage.xml
fail_ci_if_error: false