Skip to content

Commit 8d1c6b5

Browse files
committed
set postgres password
1 parent 7b331bd commit 8d1c6b5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
pip install -r tests/test-requirements.txt
4242
- name: Setup postgres
4343
run: |
44-
psql -c 'CREATE DATABASE piccolo;' -U postgres
45-
psql -c "CREATE USER piccolo PASSWORD 'piccolo';" -U postgres
46-
psql -c "GRANT ALL PRIVILEGES ON DATABASE piccolo TO piccolo;" -U postgres
47-
psql -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" -d piccolo -U postgres
44+
export PGPASSWORD=postgres
45+
psql -h localhost -c 'CREATE DATABASE piccolo;' -U postgres
46+
psql -h localhost -c "CREATE USER piccolo PASSWORD 'piccolo';" -U postgres
47+
psql -h localhost -c "GRANT ALL PRIVILEGES ON DATABASE piccolo TO piccolo;" -U postgres
48+
psql -h localhost -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" -d piccolo -U postgres
4849
4950
- name: Test with pytest, Postgres
5051
run: cd tests && ./test-postgres.sh

0 commit comments

Comments
 (0)