Remove ut for samples (#78)

* remove ut for each sample

* rm tests
This commit is contained in:
Weirui Kuang
2025-12-11 19:11:06 +08:00
committed by GitHub
parent a990ab26c0
commit 4b97d9eee4
15 changed files with 0 additions and 1473 deletions

View File

@@ -1,36 +0,0 @@
name: deep_research_runtime_test
on: [push, pull_request]
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
env:
PYTHONPATH: ${{ github.workspace }}/deep_research/agent_deep_research
run: |
python -m pytest tests/agent_deep_research_test.py -v

View File

@@ -1,46 +0,0 @@
name: BrowserAgent Tests
on: [push]
jobs:
test:
name: Run Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Debug directory structure
run: |
# ✅ Show actual directory structure
echo "Current directory: $(pwd)"
ls -la
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Dependencies
run: |
cd browser_use/agent_browser
python -m pip install --upgrade pip
pip install pytest pytest-asyncio
pip install -r requirements.txt
- name: Run Tests
env:
PYTHONPATH: ${{ github.workspace }}/browser_use/agent_browser
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
run: |
# ✅ Ensure test-results directory exists
mkdir -p test-results
# ✅ Run tests with XML output
python -m pytest tests/browser_agent_test.py -v

View File

@@ -1,40 +0,0 @@
name: browser_use_fullstack_runtime_test
on: [push]
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: |
# ✅ Show actual directory structure
echo "Current directory: $(pwd)"
ls -la
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# ✅ Use validated path from debug output
cd browser_use/browser_use_fullstack_runtime/backend
pip install pytest pytest-asyncio
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
PYTHONPATH: ${{ github.workspace }}/browser_use/browser_use_fullstack_runtime/backend
run: |
# ✅ Use validated path from debug output
python -m pytest tests/browser_use_fullstack_runtime_test.py -v

View File

@@ -1,34 +0,0 @@
name: Conversational Agents Chatbot Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# ✅ Use correct relative path
cd conversational_agents/chatbot
python -m pip install --upgrade pip
pip install pytest pytest-asyncio
pip install -r requirements.txt
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}/conversational_agents/chatbot
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
run: |
# ✅ Use correct relative path
python -m pytest tests/conversational_agents_chatbot_test.py -v

View File

@@ -1,36 +0,0 @@
name: Flask API Runtime Test
on: [push]
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 conversational_agents/chatbot_fullstack_runtime/backend
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}/conversational_agents/chatbot_fullstack_runtime
run: |
python -m pytest tests/conversational_agents_chatbot_fullstack_runtime_webserver_test.py -v

View File

@@ -1,36 +0,0 @@
name: ACE Benchmark Evaluation Test
on: [push]
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: |
pip install --upgrade pip
pip install pytest pytest-asyncio pytest-mock
pip install agentscope ray
- name: Run tests
env:
PYTHONPATH: ${{ env.GITHUB_WORKSPACE }}/evaluation/ace_bench
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
run: |
python -m pytest tests/evaluation_test.py -v

View File

@@ -1,35 +0,0 @@
name: Run test_game.py
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Debug directory structure
run: |
# ✅ Show actual directory structure
echo "Current directory: $(pwd)"
ls -la
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
cd games/game_werewolves
pip install pytest pytest-asyncio
pip install -r requirements.txt
- name: Run game_test.py
env:
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
PYTHONPATH: $GITHUB_WORKSPACE/games/game_werewolves
run: |
# ✅ Ensure correct working directory
PYTHONPATH=$GITHUB_WORKSPACE/games/game_werewolves python -m pytest tests/game_test.py -v