From d58c32e25b44a23f81ca241829a2fffbcd3a48e5 Mon Sep 17 00:00:00 2001 From: lukitasxue Date: Mon, 8 Jun 2026 14:39:21 +1000 Subject: [PATCH 1/2] ci: add Electron workflow --- .github/workflows/electron-ci.yml | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/electron-ci.yml diff --git a/.github/workflows/electron-ci.yml b/.github/workflows/electron-ci.yml new file mode 100644 index 0000000..8c22c45 --- /dev/null +++ b/.github/workflows/electron-ci.yml @@ -0,0 +1,42 @@ +name: Electron CI + +on: + push: + branches: [main, lucas/onboarding] + 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 \ No newline at end of file From 9d233da414defb22522fe3d9261ce89426224baa Mon Sep 17 00:00:00 2001 From: lukitasxue Date: Mon, 8 Jun 2026 14:58:32 +1000 Subject: [PATCH 2/2] ci: add Electron and Python workflows --- .github/workflows/electron-ci.yml | 3 +- .github/workflows/python-ci.yml | 55 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-ci.yml diff --git a/.github/workflows/electron-ci.yml b/.github/workflows/electron-ci.yml index 8c22c45..c3f8761 100644 --- a/.github/workflows/electron-ci.yml +++ b/.github/workflows/electron-ci.yml @@ -2,7 +2,6 @@ name: Electron CI on: push: - branches: [main, lucas/onboarding] paths: - "electron/**" - ".github/workflows/electron-ci.yml" @@ -11,7 +10,7 @@ on: paths: - "electron/**" - ".github/workflows/electron-ci.yml" - + jobs: electron-checks: name: Install, link, and build Electron app diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml new file mode 100644 index 0000000..49ced8f --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -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 . \ No newline at end of file