refactor demos (#398)

This commit is contained in:
Salman Paracha 2025-02-07 18:45:42 -08:00 committed by GitHub
parent 2bd61d628c
commit b3c95a6698
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
93 changed files with 338 additions and 1042 deletions

View file

@ -0,0 +1,19 @@
#!/bin/bash
set -eu
# for demo in currency_exchange hr_agent
for demo in currency_exchange
do
echo "******************************************"
echo "Running tests for $demo ..."
echo "****************************************"
cd ../../samples_python/$demo
archgw up arch_config.yaml
docker compose up -d
cd ../../shared/test_runner
TEST_DATA=../../samples_python/$demo/test_data.yaml poetry run pytest
cd ../../samples_python/$demo
archgw down
docker compose down -v
cd ../../shared/test_runner
done