From 72912f1f2f7c23ae6197f4f1fa9aa941f7f83258 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sat, 4 Apr 2026 13:29:15 +0000 Subject: [PATCH] ci: add unit tests and e2e_truth to CI pipeline - Run cargo test --lib in CI checks to execute PLN/ECAN/scorer unit tests - Add e2e_truth test suite to VPS e2e test step - Enable OPENBRAIN__TRUTH__ENABLED for e2e testing --- .gitea/workflows/ci-cd.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 24e2eed..a268565 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -60,6 +60,7 @@ jobs: . "$HOME/.cargo/env" cargo check cargo test --no-run + cargo test --lib - name: Build release run: | @@ -239,11 +240,13 @@ jobs: OPENBRAIN_E2E_REMOTE: "true" OPENBRAIN_E2E_BASE_URL: http://${{ secrets.VPS_HOST }}:3100 OPENBRAIN__AUTH__ENABLED: "true" + OPENBRAIN__TRUTH__ENABLED: "true" run: | set -euxo pipefail export OPENBRAIN_E2E_API_KEY="$(cat .ci/openbrain_e2e_key)" . "$HOME/.cargo/env" cargo test --test e2e_mcp -- --test-threads=1 + cargo test --test e2e_truth -- --test-threads=1 - name: Remove ephemeral e2e key and restart service if: always() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')