Skip to content

Bump pre-commit from 3.7.1 to 3.8.0 #216

Bump pre-commit from 3.7.1 to 3.8.0

Bump pre-commit from 3.7.1 to 3.8.0 #216

Workflow file for this run

---
name: Test
on: [pull_request, push, workflow_dispatch]
jobs:
codespell_and_ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user codespell[toml] ruff
# TODO: Fix lint issues and remove `--exit-zero` from the line below.
- run: ruff --exit-zero --output-format=github --target-version=py38 .
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pytest pytest-cov pytest-sugar coverage cached-property
- name: Install Whoosh
run: |
pip install -e .
- name: Run tests
run: |
pytest --cov=./ --cov-report=xml --cov-report=html
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
with:
name: "HTML Coverage ${{ matrix.python-version }}"
path: "htmlcov"
retention-days: 7
- name: Upload Coverage to Codecov
uses: codecov/[email protected]
with:
directory: ./
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
handle_no_reports_found: true
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)