Repository navigation
ci: run backend tests and frontend build on PRs - #926
Open
Abhijeet777ui wants to merge 1 commit into
Open
Abhijeet777ui wants to merge 1 commit into
Abhijeet777ui wants to merge 1 commit into
Conversation
Runs the 129 existing backend tests on Python 3.11 and builds the frontend on Node 24. The backend suite mocks Zep and needs no API keys.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the missing CI workflow. The repository has 18 backend test files (129 tests) but no workflow runs them;
.github/workflows/currently only publishes Docker images and updates the star-history bot.pytest tests -qfrombackend/.npm ci+npm run buildfromfrontend/.pull_request, pushes tomain, and manual dispatch. Read-only token, 10-minute timeout, concurrency cancellation.The backend suite mocks Zep and never calls an LLM, so no
LLM_API_KEY/ZEP_API_KEYsecrets are needed. It also does not import camel/oasis, so installing the fulluv.lock(132 packages including CUDA torch) would be unnecessary overhead. The frontend job uses a full checkout because the Vite build imports repo-rootlocales/*.json.Verification
Clean environment, no
.env, no keys:129 passed in 13.36s129 passed in 11.66snpm ci+npm run build→ 691 modules, 6.13s, 1.3 MBdistactionlint 1.7.12: cleanScope
docker-image.yml; the action-version bumps are covered by Upgrade GitHub Actions for Node 24 compatibility #86 / Upgrade GitHub Actions to latest versions #87.TESTING.md, but no workflow file. If maintainers prefer, this workflow can be folded into test: add comprehensive test suite for frontend and backend #355.中文说明
新增 CI 工作流:在 PR 上运行后端现有 129 个测试,并构建前端。后端测试全部 mock 了 Zep,不需要 LLM/Zep 密钥;完整
uv sync会拉取 CUDA 版 torch,因此这里只安装测试所需依赖。改动仅新增一个 workflow 文件,未修改应用代码,也未改动docker-image.yml。