Skip to content

Commit 182708c

Browse files
committed
chore: add integration.cloudbuild.yaml to toolbox-adk
1 parent cd9e50b commit 182708c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

Comments
 (0)