Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/electron-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Electron CI

on:
push:
paths:
- "electron/**"
- ".github/workflows/electron-ci.yml"

pull_request:
paths:
- "electron/**"
- ".github/workflows/electron-ci.yml"

jobs:
electron-checks:
name: Install, link, and build Electron app
runs-on: ubuntu-latest

defaults:
run:
working-directory: electron

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: electron/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

- name: Build Electron renderer
run: npm run build
55 changes: 55 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Python CI

on:
push:
paths:
- "python/**"
- ".github/workflows/python-ci.yml"

pull_request:
paths:
- "python/**"
- ".github/workflows/python-ci.yml"


jobs:
python-checks:
name: Install and import-check Python CV worker
runs-on: ubuntu-latest

defaults:
run:
working-directory: python

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: python/requirements.txt

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Check Python imports
run: |
python - <<'PY'
import cv2
import numpy
import onnxruntime
import fastapi
import uvicorn
import websockets

print("Python CV dependencies imported successfully")
PY

- name: Check project modules compile
run: |
python -m compileall .
Loading