Skip to content

Commit a70c95c

Browse files
authored
feat: containerized api example (#63)
* initial Signed-off-by: Amitha Dissanayake <[email protected]> * Updates Signed-off-by: Amitha Dissanayake <[email protected]> * Refactoring examples Signed-off-by: Amitha Dissanayake <[email protected]> * Docker sample read me Signed-off-by: Amitha Dissanayake <[email protected]> * REST API test Signed-off-by: Amitha Dissanayake <[email protected]> * Test updates Signed-off-by: Amitha Dissanayake <[email protected]> * Test automation Signed-off-by: Amitha Dissanayake <[email protected]> * Updated dependencies Signed-off-by: Amitha Dissanayake <[email protected]> * Fix dependencies Signed-off-by: Amitha Dissanayake <[email protected]> * Reduce threshold Signed-off-by: Amitha Dissanayake <[email protected]> --------- Signed-off-by: Amitha Dissanayake <[email protected]>
1 parent 8185b5f commit a70c95c

File tree

25 files changed

+1367
-1
lines changed

25 files changed

+1367
-1
lines changed

.github/workflows/test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,41 @@ jobs:
107107
(cd "$example" && uv run pytest -s)
108108
fi
109109
done
110+
111+
containerized-e2e-test:
112+
runs-on: ubuntu-latest
113+
defaults:
114+
run:
115+
shell: bash -e {0}
116+
steps:
117+
- name: Checkout code
118+
uses: actions/checkout@v4
119+
120+
- name: Set up Python
121+
uses: actions/setup-python@v5
122+
with:
123+
python-version: '3.12'
124+
125+
- name: Install uv
126+
run: |
127+
pip install uv
128+
129+
- name: Build ak-py
130+
working-directory: ak-py
131+
run: |
132+
set -e
133+
./build.sh
134+
135+
- name: Run Containerized Examples
136+
env:
137+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
138+
run: |
139+
set -e
140+
for example in examples/containerized/* examples/containerized/a2a/*; do
141+
if [ -d "$example" ] && [ -f "$example/build.sh" ]; then
142+
echo "=== Running build for $example ==="
143+
(cd "$example" && ./build.sh local)
144+
echo "=== Running tests for $example ==="
145+
(cd "$example" && uv run pytest -s)
146+
fi
147+
done

examples/api/a2a/multi/a2a_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# test_app.py
21
import asyncio
32
import subprocess
43
import sys
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/aws-containered/crewai/deploy/.terraform.lock.hcl renamed to examples/aws-containerized/crewai/deploy/.terraform.lock.hcl

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)