diff --git a/.github/workflows/python-uv-ci-with-db.yml b/.github/workflows/python-uv-ci-with-db.yml index abb283b..4085042 100644 --- a/.github/workflows/python-uv-ci-with-db.yml +++ b/.github/workflows/python-uv-ci-with-db.yml @@ -101,7 +101,7 @@ jobs: POSTGRES_PASSWORD: ${{ inputs.postgres_password }} POSTGRES_DB: ${{ inputs.postgres_db }} ports: - - 5432:5432 + - 5432 options: >- --health-cmd="${{ inputs.postgres_health_cmd }}" --health-interval=${{ inputs.postgres_health_interval }} @@ -114,6 +114,13 @@ jobs: --health-interval=${{ inputs.redis_health_interval }} --health-timeout=${{ inputs.redis_health_timeout }} --health-retries=${{ inputs.redis_health_retries }} + env: + POSTGRES_HOST: 127.0.0.1 + POSTGRES_PORT: ${{ job.services.postgres.ports['5432'] }} + POSTGRES_USER: ${{ inputs.postgres_user }} + POSTGRES_PASSWORD: ${{ inputs.postgres_password }} + POSTGRES_DB: ${{ inputs.postgres_db }} + DATABASE_URL: postgres://${{ inputs.postgres_user }}:${{ inputs.postgres_password }}@127.0.0.1:${{ job.services.postgres.ports['5432'] }}/${{ inputs.postgres_db }} permissions: contents: read defaults: