diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c934fbc..31433ae 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -40,6 +40,11 @@ jobs: POSTGRES_DB: test_db POSTGRES_USER: test_user POSTGRES_PASSWORD: test_pass + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 ports: - 5433:5432 steps: @@ -53,10 +58,10 @@ jobs: - run: pip install -e ".[dev]" - run: alembic upgrade head env: - DATABASE_URL: postgresql+asyncpg://test_user:test_pass@localhost:5433/test_db + DATABASE_URL: postgresql+asyncpg://test_user:test_pass@127.0.0.1:5433/test_db - run: pytest --tb=short env: - DATABASE_URL: postgresql+asyncpg://test_user:test_pass@localhost:5433/test_db + DATABASE_URL: postgresql+asyncpg://test_user:test_pass@127.0.0.1:5433/test_db - run: | cd frontend npm ci