mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-02-04 13:16:37 +08:00
Tests: - test_bash_echo: Run simple bash command - test_file_creation: Create and verify file - test_directory_listing: List directory contents - test_file_search: Search with grep - test_multi_step_task: Multi-step file manipulation Each test runs a complete agent loop (API call -> tool execution -> continue). Required secrets: - TEST_API_KEY: API key for testing - TEST_BASE_URL: API base URL - TEST_MODEL: Model (default: claude-3-5-sonnet-20241022) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
632 B
YAML
32 lines
632 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install anthropic python-dotenv openai
|
|
|
|
- name: Run tests
|
|
env:
|
|
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
|
|
TEST_BASE_URL: ${{ secrets.TEST_BASE_URL }}
|
|
TEST_MODEL: ${{ secrets.TEST_MODEL }}
|
|
run: |
|
|
python tests/test_agent.py
|