fix(ci): resolve test collection errors on GitHub CI
- 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:
parent
c18bfec8f5
commit
71dd12072c
2 changed files with 8 additions and 3 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -29,13 +29,13 @@ jobs:
|
|||
run: pip install git+https://git.opensourcesolarpunk.com/Circuit-Forge/circuitforge-core.git@main
|
||||
|
||||
- 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
|
||||
run: ruff check .
|
||||
|
||||
- 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:
|
||||
name: Frontend (Vue)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
"""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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue