Skip to content

Commit

Permalink
Update snowflake-docker.yml
Browse files Browse the repository at this point in the history
Moved sections and added pg_isready statement
  • Loading branch information
susan-pgedge authored Jan 21, 2025
1 parent 0ad8cf6 commit ceb31e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/snowflake-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ jobs:
run: |
docker build --build-arg PGVER=${{ matrix.pgver }} -t snowflake .
- name: Run Docker Container
run: |
docker run -d --name snowflake -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 snowflake
sleep 5
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -46,7 +42,13 @@ jobs:
python3-dev \
python3-psycopg2 \
python3-dotenv
until "pg_isready -p 59${{ matrix.pgver }}" 2>/dev/null; do >&2 echo "Postgres is unavailable - sleeping for 2 seconds"
sleep 2
- name: Run Docker Container
run: |
docker run -d --name snowflake -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 snowflake
- name: Run Test Harness (runner.py)
run: |
python test/runner.py -c test/t/lib/${{ matrix.pgver }}config.env -s test/schedule_files/script_file -k
Expand Down

0 comments on commit ceb31e2

Please sign in to comment.