Skip to content

Commit 80358e4

Browse files
authored
Set up CI for the a2ui-agent python SDK (google#536)
1 parent 3437235 commit 80358e4

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2026 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+
# https://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+
name: Build and Test A2UI-agent Python SDK
16+
17+
on:
18+
push:
19+
branches:
20+
- '*'
21+
paths:
22+
- 'a2a_agents/python/a2ui_agent/**'
23+
pull_request:
24+
paths:
25+
- 'a2a_agents/python/a2ui_agent/**'
26+
27+
jobs:
28+
build-and-test:
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v3
34+
35+
- name: Set up Python
36+
uses: actions/setup-python@v4
37+
with:
38+
python-version: '3.x'
39+
40+
- name: Install `uv` globally
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install uv
44+
45+
- name: Build the python SDK
46+
working-directory: a2a_agents/python/a2ui_agent
47+
run: uv build .
48+
49+
- name: Run unit tests
50+
working-directory: a2a_agents/python/a2ui_agent
51+
run: uv run --with pytest pytest tests/

a2a_agents/python/a2ui_agent/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ The `src/a2ui/extension` directory contains the core logic for the A2UI agent ex
2424
uv run --with pytest pytest tests/
2525
```
2626

27+
## Building the SDK
28+
29+
To build the SDK, run the following command from the `a2a_agents/python/a2ui_agent` directory:
30+
31+
```bash
32+
uv build .
33+
```
34+
2735
## Disclaimer
2836

2937
Important: The sample code provided is for demonstration purposes and illustrates the mechanics of A2UI and the Agent-to-Agent (A2A) protocol. When building production applications, it is critical to treat any agent operating outside of your direct control as a potentially untrusted entity.

0 commit comments

Comments
 (0)