Skip to content

Commit a0e4547

Browse files
final
1 parent 66fde9c commit a0e4547

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,35 +65,9 @@ jobs:
6565
if: matrix.os == 'macos-latest'
6666
run: brew install postgresql
6767

68-
- name: Init PostgreSQL (Windows)
68+
- name: Install PostgreSQL (Windows)
6969
if: matrix.os == 'windows-latest'
70-
run: |
71-
echo "Searching for PostgreSQL installation..."
72-
CANDIDATES=(
73-
"/c/Program Files/PostgreSQL/16/bin"
74-
"/c/Program Files/PostgreSQL/15/bin"
75-
"/c/Program Files/PostgreSQL/14/bin"
76-
"/c/Program Files/PostgreSQL/13/bin"
77-
)
78-
79-
FOUND=""
80-
81-
for path in "${CANDIDATES[@]}"; do
82-
if [ -x "$path/psql.exe" ]; then
83-
FOUND="$path"
84-
break
85-
fi
86-
done
87-
88-
if [ -n "$FOUND" ]; then
89-
echo "PostgreSQL binaries found at: $FOUND"
90-
echo "PGBIN=$FOUND" >> "$GITHUB_ENV"
91-
echo "PSQL=$FOUND/psql.exe" >> "$GITHUB_ENV"
92-
"$FOUND/psql.exe" --version
93-
else
94-
echo "No PostgreSQL installation found on this runner."
95-
echo "PGBIN=" >> "$GITHUB_ENV"
96-
fi
70+
run: choco install postgresql --yes --no-progress
9771

9872
- name: Install Poetry
9973
uses: snok/install-poetry@v1

0 commit comments

Comments
 (0)