Skip to content

Make pluginable

Make pluginable #38

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Run tests with coverage
run: |
pytest --maxfail=1 --disable-warnings -q --cov=pnanolocz_lib --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ always() }} # still runs to upload even if tests fail; adjust if you prefer
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }} # noqa
slug: derollins/Python-Nanolocz-Library
verbose: true
fail_ci_if_error: true