Skip to content

Commit

Permalink
Added e2e tests GH action, with docker compose build
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed Jun 29, 2024
1 parent 3584f18 commit d571931
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,20 @@ jobs:
- name: End to End tests using Promtpflow and chainlit code
run: |
set -e
env > .env
docker-compose -f docker-compose.yml -f docker-compose-dev.yml build recipedb datadb server promptflow
docker-compose -f docker-compose.yml -f docker-compose-dev.yml start recipedb datadb server promptflow
echo "logs db ..."
docker-compose -f docker-stack.yml logs recipedb
sleep 10
docker ps
echo "logs backend ..."
docker-compose -f docker-stack.yml logs server
docker-compose -f docker-stack.yml -f docker-compose-dev.yml logs server
echo "Tests ..."
docker compose -f docker-compose.yml -f docker-compose-dev.yml exec --workdir /app/chainlit-ui-evaluation promptflow pf run create --flow . --data ./data.jsonl --stream --column-mapping query='${data.query}' context='${data.context}' chat_history='${data.chat_history}' --name base_run
docker compose -f docker-compose.yml -f docker-compose-dev.yml exec --workdir /app/chainlit-ui-evaluation promptflow pf run show-details -n base_run
docker compose -f docker-compose.yml -f docker-compose-dev.yml exec --workdir /app/chainlit-ui-evaluation promptflow pf run show-metrics -n base_run
#docker compose -f docker-compose.yml -f docker-compose-dev.yml exec --workdir /app/chainlit-ui-evaluation promptflow pf run visualize -n base_run
docker compose -f docker-compose.yml -f docker-compose-dev.yml exec --workdir /app/chainlit-ui-evaluation promptflow python3 check_evaluation_results.py
docker-compose -f docker-stack.yml down -v --remove-orphans
docker-compose -f docker-stack.yml -f docker-compose-dev.yml down -v --remove-orphans

0 comments on commit d571931

Please sign in to comment.