Skip to content

Commit f733d12

Browse files
Update the PATH variable with the newly installed PostgreSQL directory to use the correct pg_config.
1 parent 7ff3c4b commit f733d12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/run-python-tests-pg.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
brew install postgresql@${{ matrix.pgver }}
6565
echo "/opt/homebrew/opt/postgresql@${{ matrix.pgver }}/bin" >> $GITHUB_PATH
6666
67+
6768
- name: Uninstall PostgreSQL if already present on windows
6869
if: ${{ matrix.os == 'windows-latest' }}
6970
run: |
@@ -85,6 +86,14 @@ jobs:
8586
IF %ERRORLEVEL% EQU 3010 cmd /c "exit /b 0"
8687
shell: cmd
8788

89+
- name: Add pg_config path to PATH
90+
shell: pwsh
91+
run: |
92+
$pgPath = "C:\\PostgreSQL\\${{ matrix.pgver }}\\bin"
93+
Write-Output $pgPath
94+
Add-Content -Path $env:GITHUB_PATH -Value $pgPath
95+
pg_config --version
96+
8897
- name: Create the tablespace directory on Linux
8998
if: ${{ matrix.os == 'ubuntu-22.04' }}
9099
run: |

0 commit comments

Comments
 (0)