File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ jobs:
1010 postgres :
1111 image : postgres:18
1212 ports :
13- - 6432:6432
13+ - 6432:5432
1414 env :
1515 POSTGRES_USER : krylosov-aa
1616 POSTGRES_PASSWORD : test
1717 POSTGRES_DB : test
1818 options : >-
19- --health-cmd="pg_isready -U test -d test_db "
19+ --health-cmd="pg_isready -U krylosov-aa -d test "
2020 --health-interval=5s
2121 --health-timeout=5s
22- --health-retries=5
22+ --health-retries=10
2323
2424 strategy :
2525 matrix :
4141 - name : Sync dependencies (prod + dev)
4242 run : uv sync --all-extras --dev
4343
44+ - name : Wait for Postgres to be ready
45+ run : |
46+ for i in $(seq 1 10); do
47+ nc -zv 127.0.0.1 6432 && echo "Postgres is up!" && break
48+ echo "Waiting for Postgres..."
49+ sleep 3
50+ done
51+
4452 - name : Run tests
4553 run : uv run pytest --cov context_async_sqlalchemy tests examples/fastapi_example/tests examples/starlette_example/tests examples/fastapi_with_pure_asgi_example/tests --cov-report=term-missing
You can’t perform that action at this time.
0 commit comments