mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
5e6c63b0f8
- Split test suite into 3 parallel jobs (API, edge cases, web routes) - Change fly-deploy to trigger after Tests workflow succeeds - Remove duplicate test run from deploy workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test-api:
|
|
name: API Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
- run: uv python install 3.13
|
|
- run: uv sync
|
|
- run: uv run pytest tests/test_api.py -v --tb=short
|
|
|
|
test-edge-cases:
|
|
name: Edge Case Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
- run: uv python install 3.13
|
|
- run: uv sync
|
|
- run: uv run pytest tests/test_edge_cases.py -v --tb=short
|
|
|
|
test-web-routes:
|
|
name: Web Route Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
- run: uv python install 3.13
|
|
- run: uv sync
|
|
- run: uv run pytest tests/test_web_routes.py -v --tb=short
|
|
|
|
lint:
|
|
name: Code Quality
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
- run: uv python install 3.13
|
|
- run: uv sync
|
|
- run: uv run ruff check . || echo "Ruff not configured, skipping"
|
|
continue-on-error: true
|