feat: regression guard, agent card, recommend command, external datas… #31
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Retry logic for pip install to handle intermittent SSL/networking errors | |
| function retry_pip() { | |
| local n=1 max=5 delay=5 | |
| while true; do | |
| "$@" && break || { | |
| if [[ $n -lt $max ]]; then | |
| ((n++)) | |
| echo "Pip failed. Attempt $n/$max:" | |
| sleep $delay | |
| else | |
| echo "Pip command failed after $n attempts." | |
| return 1 | |
| fi | |
| } | |
| done | |
| } | |
| retry_pip pip install --default-timeout=100 -e .[dev] | |
| retry_pip pip install --default-timeout=100 httpx mcp pytest pytest-asyncio | |
| - name: Run pytest | |
| run: | | |
| PYTHONPATH=. pytest tests/ -v |