Add Unit Tests (#4)

This commit is contained in:
Lamont Huffman
2025-10-31 11:04:34 +08:00
committed by GitHub
parent 158a5e63b1
commit ef5c7d9aab
38 changed files with 1249 additions and 1122 deletions

View File

@@ -0,0 +1,37 @@
name: deep_research_runtime_test
on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Debug directory structure
run: |
echo "Current directory: $(pwd)"
ls -la
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd deep_research/agent_deep_research
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio pytest-mock
- name: Run tests
run: |
python -m pytest tests/agent_deep_research_test.py -v