Skip to content

Bump version, again #122

Bump version, again

Bump version, again #122

Workflow file for this run

name: Unit tests and coverage
on: [push, workflow_dispatch, pull_request_target]
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 }}
ref: ${{ github.ref }}
token: ${{ secrets.CODECOV_TOKEN }}
- 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