feat(tinyagent): Allow to dynamically update completion params betwee… #262
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: Cookbook Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**' | |
| - 'docs/cookbook/**' | |
| - '.github/workflows/**' | |
| - 'pyproject.toml' | |
| workflow_dispatch: | |
| jobs: | |
| run-cookbook-tests: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v5 | |
| - name: Install the latest version of uv and set the python version to 3.13 | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: 3.13 | |
| activate-environment: true | |
| - name: Install | |
| run: | | |
| uv sync -U --group tests --extra all --extra a2a | |
| - name: Run Cookbook Tests | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| HF_ENDPOINT: ${{ secrets.HF_ENDPOINT }} | |
| MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} | |
| TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| run: | | |
| pytest tests/cookbooks -v -n 4 --cov --cov-report=xml | |
| - name: Upload finished cookbooks | |
| uses: actions/upload-artifact@v5 | |
| if: always() | |
| with: | |
| path: "docs/cookbook/executed_*.ipynb" | |
| - name: Upload coverage reports to Codecov | |
| if: always() | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |