From f733d124bda2f66936d0e9bc0ab180c23858b623 Mon Sep 17 00:00:00 2001 From: Yogesh Mahajan Date: Wed, 24 Sep 2025 14:55:56 +0530 Subject: [PATCH] Update the PATH variable with the newly installed PostgreSQL directory to use the correct pg_config. --- .github/workflows/run-python-tests-pg.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/run-python-tests-pg.yml b/.github/workflows/run-python-tests-pg.yml index 9ef39cfb3..26dc562bb 100644 --- a/.github/workflows/run-python-tests-pg.yml +++ b/.github/workflows/run-python-tests-pg.yml @@ -64,6 +64,7 @@ jobs: brew install postgresql@${{ matrix.pgver }} echo "/opt/homebrew/opt/postgresql@${{ matrix.pgver }}/bin" >> $GITHUB_PATH + - name: Uninstall PostgreSQL if already present on windows if: ${{ matrix.os == 'windows-latest' }} run: | @@ -85,6 +86,14 @@ jobs: IF %ERRORLEVEL% EQU 3010 cmd /c "exit /b 0" shell: cmd + - name: Add pg_config path to PATH + shell: pwsh + run: | + $pgPath = "C:\\PostgreSQL\\${{ matrix.pgver }}\\bin" + Write-Output $pgPath + Add-Content -Path $env:GITHUB_PATH -Value $pgPath + pg_config --version + - name: Create the tablespace directory on Linux if: ${{ matrix.os == 'ubuntu-22.04' }} run: |