fix(ci): resolve test collection errors on GitHub CI
Some checks are pending
CI / Frontend (Vue) (push) Waiting to run
CI / Backend (Python) (push) Waiting to run
Mirror / mirror (push) Waiting to run

- ocr/__init__.py: move VisionLanguageOCR re-export under TYPE_CHECKING
  so torch is not imported at module load time
- ci.yml: add psycopg2-binary + anthropic to pip install (cf-core
  community and fixture scripts need these); exclude tests/fixtures/ and
  test_docuvision_client.py (torch/GPU tests — not runnable on ubuntu-latest)
This commit is contained in:
pyr0ball 2026-07-06 02:53:07 -07:00
parent c18bfec8f5
commit 71dd12072c
2 changed files with 8 additions and 3 deletions

View file

@ -29,13 +29,13 @@ jobs:
run: pip install git+https://git.opensourcesolarpunk.com/Circuit-Forge/circuitforge-core.git@main run: pip install git+https://git.opensourcesolarpunk.com/Circuit-Forge/circuitforge-core.git@main
- name: Install dependencies - name: Install dependencies
run: pip install -e . pytest pytest-asyncio httpx ruff run: pip install -e . pytest pytest-asyncio httpx ruff psycopg2-binary anthropic
- name: Lint - name: Lint
run: ruff check . run: ruff check .
- name: Test - name: Test
run: pytest tests/ -v --tb=short run: pytest tests/ -v --tb=short --ignore=tests/fixtures --ignore=tests/test_services/test_docuvision_client.py
frontend: frontend:
name: Frontend (Vue) name: Frontend (Vue)

View file

@ -1,5 +1,10 @@
"""OCR services for receipt text extraction.""" """OCR services for receipt text extraction."""
from .vl_model import VisionLanguageOCR from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .vl_model import VisionLanguageOCR
__all__ = ["VisionLanguageOCR"] __all__ = ["VisionLanguageOCR"]