Refactor - remove 'demo' ff from codebase #286
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Execute Backend tests | |
on: [pull_request] | |
jobs: | |
continous_integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start Docker Compose | |
run: docker-compose -f "docker-compose.test.yml" up -d --build | |
- name: Install Curl | |
run: sudo apt install curl -y | |
- name: Wait for Backend Service | |
run: | | |
while true; do | |
if curl -s http://localhost:8000/openapi.json; then | |
break | |
fi | |
sleep 5 | |
done | |
- name: Run tests | |
run: docker exec agenta-backend-test pytest | |
- name: Stop Docker Compose | |
run: docker-compose down |