diff --git a/.gitattributes b/.gitattributes index 5f28270..d804f21 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,22 @@ - \ No newline at end of file +* 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab75168..545ad05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: CI on: push: pull_request: @@ -6,17 +6,16 @@ on: 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 @@ -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 diff --git a/python/__init__.py b/python/__init__.py new file mode 100644 index 0000000..e69de29