minor fix #159
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: Run Tests | |
| on: [pull_request, push] | |
| permissions: | |
| contents: write | |
| env: | |
| DEFAULT_MODEL_NAME: ${{ secrets.DEFAULT_MODEL_NAME }} | |
| DEFAULT_MODEL_PROVIDER_NAME: ${{ secrets.DEFAULT_MODEL_PROVIDER_NAME }} | |
| LITELLM_API_KEY: ${{ secrets.LITELLM_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
| COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }} | |
| DEFAULT_REDIRECT_URL: ${{ secrets.DEFAULT_REDIRECT_URL }} | |
| DEFAULT_USER_ID: ${{ secrets.DEFAULT_USER_ID }} | |
| MEM0_API_KEY: ${{ secrets.MEM0_API_KEY }} | |
| jobs: | |
| run_test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "0.5.11" | |
| - name: Set up the project | |
| run: | | |
| uv venv --python 3.12.8 | |
| source .venv/bin/activate | |
| uv lock --upgrade | |
| uv sync --all-extras --no-extra pygraphviz | |
| - name: Run tests | |
| run: uv run pytest tests -vv --cache-clear |