fix: update evaluator tests to use proper AnswerAction type (#58)

* fix: update evaluator tests to use proper AnswerAction type

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: increase token budget and mock external calls in agent test

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* test: add Docker build and container tests

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add health check endpoint for Docker container verification

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* chore: add Docker test script to package.json

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* ci: add Docker test step to CI workflow

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused stdout variable in docker test

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

close #53 

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
devin-ai-integration[bot]
2025-02-11 19:54:27 +08:00
committed by GitHub
parent 8af35c6640
commit 2efae96073
6 changed files with 110 additions and 5 deletions

View File

@@ -30,4 +30,16 @@ jobs:
JINA_API_KEY: ${{ secrets.JINA_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: npm test
run: npm test
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Run Docker tests
env:
BRAVE_API_KEY: mock_key
GEMINI_API_KEY: mock_key
JINA_API_KEY: mock_key
GOOGLE_API_KEY: mock_key
OPENAI_API_KEY: mock_key
run: npm run test:docker