Merge remote-tracking branch 'upstream/main' #42
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: fork-ci | |
| # CI for the vidaiUK/adk-python fork. | |
| # Runs the model tests on every push to `main`, plus weekly via cron so | |
| # upstream-incompatibility is caught on a schedule rather than mid-emergency. | |
| # | |
| # Previously this had a `paths-ignore` filter so doc commits skipped CI. That | |
| # created a problem: GitHub's UI renders "no checks ran on this commit" as a | |
| # neutral or missing status mark, which looked like a red X on the repo | |
| # header. Since the model suite runs in ~10 seconds, the cost of running it | |
| # on doc commits is negligible — and the benefit is that EVERY commit on main | |
| # carries a green tick. Don't reintroduce paths-ignore unless you can show | |
| # the GitHub UI no longer renders "no checks" as red. | |
| # | |
| # Note: uses only static commands - no untrusted github.event.* input. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '0 6 * * 1' # Mondays 06:00 UTC | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install | |
| run: pip install -e ".[test]" | |
| - name: Run model tests | |
| # test_interactions_utils.py is excluded because it exercises an | |
| # upstream-only feature (google.genai.interactions API) that is | |
| # broken on the upstream-published library version we install. It | |
| # is unrelated to the base_url patch this fork carries. Re-include | |
| # it if upstream fixes the FunctionCallStep / Interaction schemas. | |
| run: python -m pytest tests/unittests/models/ --ignore=tests/unittests/models/test_interactions_utils.py -q |