Files
LangBot/.github/workflows/plugins-langrag-tests.yml
huanghuoguoguo 1f227f7aa8 ci: scope PR checks and run the complete matrix daily (#3056)
* ci: streamline pull request checks and run the full matrix daily

Refs #3055

* ci: run runtime contracts only on affected Core checks

* test(ci): distinguish SDK checks from SDK publication

* fix(ci): retain legacy regressions and scope production image builds

* docs(ci): clarify focused regressions and production image selection
2026-11-17 17:31:50 +08:00

33 lines
1.4 KiB
YAML

name: Plugins / LangRAG tests
on:
# PRs exercise this consumer via plugins-knowledgeengine-shared-tests.yml; keep isolated manual repro.
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv venv
uv pip install \
'https://files.pythonhosted.org/packages/f2/c7/c870377771cbe27e047b19778b5f249b15efef52409358901af94d13e6c0/langbot_plugin-0.7.4-py3-none-any.whl#sha256=596ecd776c13efa6f6cfe178463dc4a967653238548c9569195cdbb5aa47506e' \
-r plugins/KnowledgeEngine/LangRAG/requirements.txt
- name: Real SDK import smoke
working-directory: plugins/KnowledgeEngine/LangRAG
run: |
../../../.venv/bin/python -c "import langbot_plugin; from main import LangRAG; from components.knowledge_engine.langrag import LangRAG as Engine; from components.pages.observability import LangRAGObservabilityPage; print('Real SDK:', langbot_plugin.__file__); print(LangRAG.__name__, Engine.__name__, LangRAGObservabilityPage.__name__)"
- name: Unit and benchmark tests
working-directory: plugins/KnowledgeEngine/LangRAG
run: ../../../.venv/bin/python -m unittest discover -s tests -v