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
23 changes: 22 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@

* text=auto

# Source files use LF in repo
*.js text eol=lf
*.ts text eol=lf
*.json text eol=lf
*.html text eol=lf
*.css text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.py text eol=lf

# Windows-native scripts prefer CRLF locally
*.ps1 text eol=crlf
*.bat text eol=crlf

# (future) big model binaries via Git LFS
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: CI
name: CI
on:
push:
pull_request:

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: "18"

- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Install Node deps
run: npm ci || npm install
Expand All @@ -27,10 +26,13 @@ jobs:
pip install -r requirements.txt

- name: Smoke test Python backend imports
env:
PYTHONPATH: ${{ github.workspace }}
run: |
python - <<'PY'
import importlib
for m in ['python.image_processing','python.model']:
import importlib, sys
print("PYTHONPATH OK, sys.path[0] =", sys.path[0])
for m in ("python.image_processing", "python.model"):
importlib.import_module(m)
print("Python backend imports OK")
PY
Empty file added python/__init__.py
Empty file.