fix dependency conflicts in python sdk #40
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: SDK Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "sdk/**" | |
| - ".github/workflows/guard-tests.yml" | |
| pull_request: | |
| paths: | |
| - "sdk/**" | |
| - ".github/workflows/guard-tests.yml" | |
| jobs: | |
| typescript: | |
| name: TypeScript Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: sdk/typescript | |
| env: | |
| SUPERAGENT_LM_API_BASE_URL: ${{ secrets.SUPERAGENT_LM_API_BASE_URL }} | |
| SUPERAGENT_LM_API_KEY: ${{ secrets.SUPERAGENT_LM_API_KEY }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test | |
| python: | |
| name: Python Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| SUPERAGENT_LM_API_BASE_URL: ${{ secrets.SUPERAGENT_LM_API_BASE_URL }} | |
| SUPERAGENT_LM_API_KEY: ${{ secrets.SUPERAGENT_LM_API_KEY }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v1 | |
| - name: Install package with test extras | |
| run: uv pip install --system -e sdk/python[tests] | |
| - name: Run pytest | |
| run: pytest sdk/python/tests |