Skip to content

remove unnecessary use of interpolation #135

remove unnecessary use of interpolation

remove unnecessary use of interpolation #135

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]
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@v3
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella