Skip to content

Commit b3954b2

Browse files
committed
Docker compose exec
1 parent 83eeef9 commit b3954b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
3939
docker compose logs db
4040
41-
timeout 60 bash -c 'until docker exec db pg_isready; do sleep 1; done'
41+
timeout 60 bash -c 'until docker compose exec db pg_isready; do sleep 1; done'
4242
4343
timeout 60 bash -c 'until curl -s http://localhost:8000/health || curl -s http://localhost:8000; do sleep 1; done'
4444
4545
- name: Run API tests
4646
run: poetry run pytest tests/test_api.py
4747

4848
- name: Run database tests
49-
run: docker exec hackathon-starter-web-1 poetry run pytest tests/test_database.py
49+
run: docker compose exec hackathon-starter-web-1 poetry run pytest tests/test_database.py
5050

5151
- name: Stop and remove container
5252
run: docker compose down

0 commit comments

Comments
 (0)