Backend: - Drop unused imports/locals and zero-reference helpers (truncate_ip, in_split, GEMINI_PROMPT_TEMPLATE, legacy subtitles SRT path, dead paths) - Remove unwired features (delete_uploaded, mark_ai_generated, unmark_job, compact_words, restoring_static restorer hook, gemini_worker __main__) - Remove shelved panel_layout module + its flags/tests - Remove the /api/render proxy + RENDER_SERVICE_URL Frontend: - Delete App.css, react.svg, vite.svg, agent screenshot, demo mp4s - Remove dead exports (downloadBlobUrl, consent reopen machinery, dead zod schemas/CITED_STATS) and unused deps (@remotion/media-utils, zod) - Drop the /render dev proxy; rewrite dashboard README Repo/config: - Delete render-service/ and top-level remotion/ (superseded by the dashboard's in-browser Remotion copy); drop the compose renderer service - Delete docker-compose.e2e.local.yml and 4 unreferenced screenshots - Prune .env.example dead keys, add GEMINI_API_KEY/MAX_CONCURRENT_JOBS - Tighten .dockerignore/.gitignore; add dashboard lint to CI - Fix stale compliance doc + README structure Backend 709 passed / 18 skipped; dashboard lint+build green; compose valid.
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
backend-tests:
|
|
runs-on: ubuntu-latest
|
|
# The Forgejo runner cannot provision Python 3.11 via actions/setup-python
|
|
# ("Version 3.11 was not found in the local cache"), so the job runs inside
|
|
# a container that already has Python 3.11. It must also ship Node and git:
|
|
# the runner executes JS actions (actions/checkout) by invoking `node`
|
|
# inside the job container, so a python-only image fails at checkout.
|
|
container: nikolaik/python-nodejs:python3.11-nodejs20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# Shared thin test environment (see requirements-test.txt): everything the
|
|
# collected tests import at module level, WITHOUT the heavy ML stack
|
|
# (torch/ultralytics/mediapipe/faster-whisper), which the pipeline modules
|
|
# import lazily behind their feature gates.
|
|
- name: Install test dependencies
|
|
run: pip install -r requirements-test.txt
|
|
- name: Run tests
|
|
run: pytest tests/ -v
|
|
|
|
frontend-build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: dashboard
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
cache-dependency-path: dashboard/package-lock.json
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Lint
|
|
run: npm run lint
|
|
- name: Build
|
|
run: npm run build
|