Skip to content

Commit

Permalink
wait for db
Browse files Browse the repository at this point in the history
  • Loading branch information
wozniakpl committed Sep 16, 2024
1 parent 5bab7d7 commit 172b7c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ jobs:
run: |
python -m pip install pdm
pdm install
- name: Run tests
ls -la ./
- name: Start db
run: docker compose run --rm -d db
- name: Wait for db
run: |
docker compose run --rm -d db
nc --help
pdm run pytest
for i in {1..30}; do
nc -zv localhost 5432 && break
sleep 1
done
- name: Run tests
run: pdm run pytest

0 comments on commit 172b7c4

Please sign in to comment.