Add Python smoke tests

This commit is contained in:
Gujiassh
2026-03-11 10:10:21 +08:00
parent a9c71002d2
commit bfac5b9b88
2 changed files with 27 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ on:
branches: [main]
jobs:
unit-test:
python-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
@@ -18,33 +18,10 @@ jobs:
python-version: "3.11"
- name: Install dependencies
run: pip install anthropic python-dotenv
run: pip install anthropic python-dotenv pytest
- name: Run unit tests
run: python tests/test_unit.py
session-test:
runs-on: ubuntu-latest
strategy:
matrix:
session: [v0, v1, v2, v3, v4, v5, v6, v7, v8a, v8b, v8c, v9]
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: pip install anthropic python-dotenv
- name: Run ${{ matrix.session }} 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_${{ matrix.session }}.py
- name: Run Python smoke tests
run: python -m pytest tests/test_agents_smoke.py -q
web-build:
runs-on: ubuntu-latest