test: fix v2 tests with explicit prompts and robust assertions #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit-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 | |
| - name: Run unit tests | |
| run: python tests/test_unit.py | |
| integration-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 integration 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 |