feat(ci): pytest
This commit is contained in:
parent
ca6f8417c0
commit
51fd6e3676
8 changed files with 289 additions and 2 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: Install ruff
|
||||
run: uv tool install ruff
|
||||
- name: Check Python formatting with ruff
|
||||
run: ruff format --check scrapers/
|
||||
run: ruff format --check scrapers/ tests/scrapers/
|
||||
|
||||
python-lint:
|
||||
name: Python Linting
|
||||
|
|
@ -75,4 +75,16 @@ jobs:
|
|||
- name: Install dependencies with mypy
|
||||
run: uv sync --dev
|
||||
- name: Type check Python files with mypy
|
||||
run: uv run mypy scrapers/
|
||||
run: uv run mypy scrapers/ tests/scrapers/
|
||||
|
||||
python-test:
|
||||
name: Python Testing
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
- name: Install dependencies with pytest
|
||||
run: uv sync --dev
|
||||
- name: Run Python tests
|
||||
run: uv run pytest tests/scrapers/ -v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue