|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +steps: |
| 16 | + - id: Install library requirements |
| 17 | + name: 'python:${_VERSION}' |
| 18 | + dir: 'packages/toolbox-adk' |
| 19 | + args: |
| 20 | + - install |
| 21 | + - '-r' |
| 22 | + - 'requirements.txt' |
| 23 | + - '--user' |
| 24 | + entrypoint: pip |
| 25 | + - id: Install test requirements |
| 26 | + name: 'python:${_VERSION}' |
| 27 | + args: |
| 28 | + - install |
| 29 | + - '-e' |
| 30 | + - 'packages/toolbox-adk[test]' |
| 31 | + - '--user' |
| 32 | + entrypoint: pip |
| 33 | + - id: Run integration tests |
| 34 | + name: 'python:${_VERSION}' |
| 35 | + dir: 'packages/toolbox-adk' |
| 36 | + env: |
| 37 | + - TOOLBOX_URL=$_TOOLBOX_URL |
| 38 | + - TOOLBOX_VERSION=$_TOOLBOX_VERSION |
| 39 | + - GOOGLE_CLOUD_PROJECT=$PROJECT_ID |
| 40 | + - TOOLBOX_MANIFEST_VERSION=${_TOOLBOX_MANIFEST_VERSION} |
| 41 | + args: |
| 42 | + - '-c' |
| 43 | + - >- |
| 44 | + python -m pytest --cov=src/toolbox_adk --cov-report=term --cov-fail-under=90 tests/ |
| 45 | + entrypoint: /bin/bash |
| 46 | +options: |
| 47 | + logging: CLOUD_LOGGING_ONLY |
| 48 | +substitutions: |
| 49 | + _VERSION: '3.13' |
| 50 | + # Default values (can be overridden by triggers) |
| 51 | + _TOOLBOX_VERSION: '0.22.0' |
| 52 | + _TOOLBOX_MANIFEST_VERSION: '34' |
0 commit comments