Skip to content

remove unnecessary use of interpolation #143

remove unnecessary use of interpolation

remove unnecessary use of interpolation #143

Workflow file for this run

name: Unit tests and coverage
on: [push, workflow_dispatch, pull_request]
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, windows-latest]
exclude: # Python < v3.8 does not support Apple Silicon ARM64.
- python-version: "3.7"
os: macos-latest
include: # So run those legacy versions on Intel CPUs.
- python-version: "3.7"
os: macos-13
env:
OS: ${{ matrix.os }}
PYHTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[testing]
- name: Generate coverage report
run: |
pytest --cov=kneed --cov-report=xml:coverage1.xml tests/test_sample.py
pip uninstall -y matplotlib
pytest --cov=kneed --cov-report=xml:coverage2.xml tests/test_no_matplotlib.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: OS,PYTHON
token: ${{ secrets.CODECOV_TOKEN }} # required
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella