clipwright/.github/workflows/ci.yml
pedro-bento 7f4cdbc318
All checks were successful
CI / backend-tests (pull_request) Successful in 29s
CI / frontend-build (pull_request) Successful in 20s
ci: run frontend-build in the python+node container, drop setup-node
setup-node's Node download + GitHub cache service time out on the Forgejo
act runner (ETIMEDOUT 172.27.0.4:41759) and push the job to ~9m47s. The
nikolaik/python-nodejs container already ships Node 20 + npm + git.
2026-10-04 21:25:58 +01:00

47 lines
1.7 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
# Same reason as backend-tests: the Forgejo runner cannot use
# actions/setup-node's Node download + GitHub artifact-cache service (both
# time out against the act runner: "connect ETIMEDOUT ...:41759"), and
# actions/setup-python cannot provision 3.11 either. This container already
# ships Node 20 + npm + git, so actions/checkout works and setup-node is
# dropped entirely.
container: nikolaik/python-nodejs:python3.11-nodejs20
defaults:
run:
working-directory: dashboard
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build