Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

Merge pull request #618 from Swatantra-66/ci/missing-test-coverage

Nandakishor9b8715f4190e
diff --cc .github/workflows/ci.yml
index 2fe56ecf,4e36a4fb..2c5d7f8c
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@@ -145,24 -133,10 +145,25 @@@ jobs
python tests/test_training.py
python tests/test_example_server_limits.py
python tests/test_blank_lang_routing.py
+ python tests/test_export_onnx_safety.py
python tests/test_load_errors.py
+ python tests/test_predict_batch.py
python tests/test_revision_pinning.py
+ - name: LangChain integration runs on the real base class
+ run: |
+ # The install above is what makes tests/test_langchain.py run on real Runnables, and
+ # nothing proves it took: with langchain-core missing, the eight checks inside that
+ # file's `if _RUNNABLE_AVAILABLE:` block vanish instead of failing, and it still
+ # prints FAIL: 0 -- measured here: PASS: 87 with the extra, PASS: 80 without, exit 0
+ # both ways. This step asserts the install took, then checks what only a real install
+ # can check.
+ python -c "from laya.integrations.langchain import RunnableSerializable; \
+ assert RunnableSerializable is not object, \
+ 'langchain-core is missing: laya.integrations.langchain fell back to a plain object, ' \
+ 'so the LangChain suites in this job test a shape no install produces'"
+ python tests/test_langchain_real_mode.py
+
- name: Email cleaning tests
run: python tests/test_email.py
# Full dependency tree here, so the stub pipeline and the metric pins that need numpy
@@@ -317,14 -265,10 +325,14 @@@
python tests/test_hooks_api.py
shell: bash
+ - name: Question token reuse tests
+ run: python tests/test_question_token_reuse.py
+ shell: bash
+
- # Same six pytest suites as the Linux job. They are named explicitly rather than added to
+ # Same pytest suites as the Linux job. They are named explicitly rather than added to
# the loop above, because the loop runs each file as a script and that is exactly what does
# not execute a pytest suite (#374).
- - name: Pytest suites (serve, batch, system-one, audit regressions, truncation)
+ - name: Pytest suites (serve, batch, system-one, audit regressions, truncation, compile)
run: |
python -m pytest tests/test_serve.py \
tests/test_router_batch.py \
diff --cc .github/workflows/release.yml
index ad56db37,27128776..c5356a86
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@@ -43,20 -42,23 +43,29 @@@ jobs
python tests/test_criteria.py
python tests/test_batch.py
python tests/test_predict_long.py
+ python tests/test_hooks.py
+ python tests/test_hooks_api.py
python tests/test_onnx_lang_parity.py
+ python tests/test_onnx_batch.py
+ python tests/test_onnx_long.py
+ python tests/test_onnx_sort.py
python tests/test_email.py
python tests/test_download.py
python tests/test_shortlist.py
python tests/test_decision_model.py
+ python tests/test_head_checkpointing.py
python tests/test_packaging.py
+ python tests/test_compose_env.py
python tests/test_doc_tables.py
+ python tests/test_env_docs.py
+ python tests/test_tokenizer_cache.py
+ python tests/test_tokenizer_concurrency.py
+ python tests/test_lazy_import.py
+ python tests/test_runtime_fixes.py
python tests/test_lang_guess.py
+ python tests/test_option_collapse.py
+ python tests/test_identifier_complexity.py
+ python tests/test_lang_stats.py
python tests/test_calibration_persistence.py
python tests/test_context_manager.py
python tests/test_criteria_normalization.py
diff --cc tests/test_packaging.py
index f3d31441,45c5cfbf..09b63e38
--- a/tests/test_packaging.py
+++ b/tests/test_packaging.py
@@@ -2,9 -2,9 +2,10 @@@
Text parsing, not tomllib: the floor is 3.10 and tomllib arrives in 3.11.
"""
+import ast
import os
import re
+ import shlex
import sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))