File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,21 @@ jobs:
4141 - name : Sync dependencies (prod + dev)
4242 run : uv sync --all-extras --dev
4343
44- - name : Wait for Postgres to be ready
44+ - name : Prepare database schema via SQL
4545 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
46+ sudo apt-get update && sudo apt-get install -y postgresql-client
47+
48+ PGPASSWORD=test psql \
49+ -h 127.0.0.1 \
50+ -p 6432 \
51+ -U krylosov-aa \
52+ -d test \
53+ -c "
54+ CREATE TABLE IF NOT EXISTS example (
55+ id uuid default gen_random_uuid() not null,
56+ text text
57+ );
58+ "
5159
5260 - name : Run tests
5361 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