clipwright/.github/workflows/ci.yml
pedro-bento 6721d853ef
Some checks failed
CI / backend-tests (pull_request) Failing after 19s
CI / frontend-build (pull_request) Successful in 31s
fix(publish): channel-by-id selection, DD/MM/YYYY scheduling, app-first boot
- Postiz publishing now selects exact channels by integration id; identifier
  mapping fixes instagram-standalone (was 'not connected') and multiple channels
  per network (was first-only); settings.__type uses the real identifier
- Publish modal lists all channels, DD/MM/YYYY + HH:MM scheduling with validation,
  surfaces backend errors and a success confirmation
- Remove AWS/S3 clip backup and ElevenLabs voice dubbing (server, UI, tests, docs)
- Boot straight into the app; remove the landing/launch screen
- CI backend-tests runs in a python:3.11-slim container (Forgejo has no 3.11 cache)
2026-10-04 19:41:23 +01:00

49 lines
1.6 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 python:3.11-slim container instead.
container: python:3.11-slim
steps:
# The slim image ships no git; checkout needs it.
- name: Install git
run: apt-get update && apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
# Everything the collected tests import at module level, WITHOUT the
# heavy ML stack (torch/ultralytics/mediapipe/faster-whisper) — the
# pipeline modules import those lazily behind their feature gates, and
# the tests exercise the gated-off paths. numpy+opencv cover the layout
# modules, fastapi/python-multipart cover importing app.py for the MCP
# endpoint tests, google-genai covers gemini_worker.
- name: Install test dependencies
run: >
pip install pytest pillow httpx pydantic numpy
opencv-python-headless python-dotenv google-genai fastapi
python-multipart
- 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: Build
run: npm run build