Skip to content

chore: add initial github ci & fix tests#17

Merged
bsbds merged 2 commits intoxorbitsai:masterfrom
bsbds:chore/github-ci
Mar 20, 2026
Merged

chore: add initial github ci & fix tests#17
bsbds merged 2 commits intoxorbitsai:masterfrom
bsbds:chore/github-ci

Conversation

@bsbds
Copy link
Copy Markdown
Collaborator

@bsbds bsbds commented Mar 17, 2026

No description provided.

@bsbds bsbds force-pushed the chore/github-ci branch from 107f44d to b5c2b1c Compare March 17, 2026 11:27
Copy link
Copy Markdown

@rogercloud rogercloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Overall Status:APPROVED with minor suggestions

This PR is well-structured with comprehensive tests (8/8 passing). The refactoring moves from bundled model files to a flexible download system with good backward compatibility.

Findings: 2 minor issues - see inline comments

TOKENIZER_MODEL_DIR_ENV = "DEEPDOC_TOKENIZER_MODEL_DIR"


def _parse_bool(value: str | None, default: bool = False) -> bool:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Code Duplication

The _parse_bool function is duplicated here and in the new file deepdoc/config.py:18-21. Consider extracting to a common utility module like deepdoc/common/__init__.py to avoid duplication.

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: CI Coverage Gap

pyproject.toml declares requires-python = ">=3.10,<3.14" (supporting 3.10-3.13), but CI only tests 3.12. Consider using matrix testing:

strategy:
  matrix:
    python-version: ["3.10", "3.11", "3.12", "3.13"]

@bsbds bsbds force-pushed the chore/github-ci branch from b5c2b1c to bc0c780 Compare March 19, 2026 07:36
@bsbds bsbds force-pushed the chore/github-ci branch from bc0c780 to 98f6d32 Compare March 19, 2026 07:40
@bsbds bsbds merged commit d063428 into xorbitsai:master Mar 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants