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
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.12"
cache: pip

- name: Install dependencies
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/deploy_hf_space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ jobs:
# ── Gate: all tests must pass before deploy ──────────────────────────────
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.12"
cache: pip

- name: Install test dependencies
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,7 @@ models/

# Runtime data (never committed)
src/data/

# code-review-graph local graph
*.crg.db
.code-review-graph/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.ruff]
target-version = "py311"
target-version = "py312"
line-length = 120
exclude = ["venv", ".venv", "core", "scripts"]

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
black>=24.0.0
huggingface_hub
code-review-graph==2.2.1
3 changes: 2 additions & 1 deletion tests/integration/test_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def test_paddle_engine_mocked_predict():

def test_easyocr_factory_dynamic_loading():
with patch("src.providers.easyocr_provider.EasyOCREngine") as mock_easy:
# Reset registry so easyocr is not cached from a previous test
# Reset registry and instance cache so easyocr is not cached from a previous test
OCRFactory._engines.pop("easyocr", None)
OCRFactory._instances.pop("easyocr", None)
OCRFactory.get_engine("easyocr")
mock_easy.assert_called_once()

Expand Down
Loading