Skip to content

ci: run backend tests and frontend build on PRs - #926

Open
Abhijeet777ui wants to merge 1 commit into
666ghj:mainfrom
Abhijeet777ui:ci/backend-tests-frontend-build
Open

Abhijeet777ui wants to merge 1 commit into
666ghj:mainfrom
Abhijeet777ui:ci/backend-tests-frontend-build

Conversation

@Abhijeet777ui

Copy link
Copy Markdown

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.

  • Backend: Python 3.11 (matches the Dockerfile), installs only the dependencies the suite imports, runs pytest tests -q from backend/.
  • Frontend: Node 24, npm ci + npm run build from frontend/.
  • Triggers on pull_request, pushes to main, 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_KEY secrets are needed. It also does not import camel/oasis, so installing the full uv.lock (132 packages including CUDA torch) would be unnecessary overhead. The frontend job uses a full checkout because the Vite build imports repo-root locales/*.json.

Verification

Clean environment, no .env, no keys:

  • Python 3.11: 129 passed in 13.36s
  • Python 3.12: 129 passed in 11.66s
  • Node 24: npm ci + npm run build → 691 modules, 6.13s, 1.3 MB dist
  • actionlint 1.7.12: clean

Scope

中文说明

新增 CI 工作流:在 PR 上运行后端现有 129 个测试,并构建前端。后端测试全部 mock 了 Zep,不需要 LLM/Zep 密钥;完整 uv sync 会拉取 CUDA 版 torch,因此这里只安装测试所需依赖。改动仅新增一个 workflow 文件,未修改应用代码,也未改动 docker-image.yml。

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.
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.

1 participant