Skip to content

Add tests

Add tests #8

Workflow file for this run

name: pre-commit & test coverage
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
PYTHONPATH: /home/runner/work/police-data-trust-scrapers/police-data-trust-scrapers:$PYTHONPATH
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12.2"
cache: pip
cache-dependency-path: "**/requirements*.txt"
- name: Install dependencies
run: pip install -r requirements_dev.txt
- uses: pre-commit/[email protected]
- name: Check coverage
run: pytest --cov=scrapers