Files
kjvstudy.org/.github/workflows/test.yml
T
kennethreitz 5e6c63b0f8 Run tests in parallel and remove duplicate test runs
- 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>
2025-11-24 20:41:09 -05:00

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