Skip to content

Commit

Permalink
Update api-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian-Plywaczyk authored Oct 24, 2023
1 parent df513fc commit 4e66dd4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ jobs:
run: docker-compose -f "test-docker-compose.yaml" build
- name: Run Application with Docker Compose
run: docker-compose -f "test-docker-compose.yaml" up -d
- name: Wait for PostgreSQL to start
run: |
# Wait for the PostgreSQL container to be ready
while ! docker-compose -f "test-docker-compose.yaml" exec postgres pg_isready -U $POSTGRES_USER -d $POSTGRES_DB -h postgres -p $POSTGRES_PORT -t 1; do
echo "Waiting for PostgreSQL to start..."
sleep 5
done
- name: Check logs from postgres container
run: docker-compose -f "test-docker-compose.yaml" logs postgres
- name: Run the tests
run: docker-compose -f "test-docker-compose.yaml" run api pytest tests/

0 comments on commit 4e66dd4

Please sign in to comment.