mirror of
https://github.com/Sea-Haven-Industries/pr-reviewer.git
synced 2026-09-30 03:23:14 +00:00
A single-user local dashboard that pulls open PRs from the Sea-Haven-Industries org, reviews each with a Fireworks model in the BLOCK/FIX/NIT/QUESTION format, and posts the review to GitHub as the token owner. Runs only on localhost; secrets stay in a gitignored .env and never reach the browser. Structured as an app/ package plus a static/ frontend so the module imports and static mount resolve. HTTP uses httpx2 (the runtime lib starlette's TestClient now prefers), pinned in requirements.txt. Includes a stdlib-only pytest suite (network mocked, no extra test deps so CI needs only pytest) with a skip-by-default live Fireworks test, and CI wired to the org ci-python-app reusable workflow to lint app and tests and run the mocked suite fully offline. Dependabot covers pip and github-actions.
18 lines
697 B
YAML
18 lines
697 B
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
ci:
|
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-python-app.yaml@main
|
|
with:
|
|
python-version: "3.12"
|
|
# Lint app + tests so test code is held to the same ruff bar.
|
|
source-dirs: "app tests"
|
|
# The mocked suite runs fully offline, so actually RUN it (not just
|
|
# collect). subproject-dir "." runs `python -m pytest -q` from the repo
|
|
# root: all mocked tests execute and the single `live` Fireworks test
|
|
# skips itself (no FIREWORKS_API_KEY secret in CI). collect-only would be
|
|
# redundant with a full run, so it is turned off.
|
|
collect-only: false
|
|
subproject-dir: "."
|