diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index fe17412..8385223 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -48,14 +48,12 @@ jobs: poetry run pip install tox - name: Set up database run: | - psql -c 'CREATE ROLE django SUPERUSER LOGIN CREATEDB;' -U postgres -h localhost - psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres -h localhost - psql -c 'CREATE DATABASE test_pg_database;' -U postgres -h localhost - psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_pg_database -h localhost - psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d test_pg_database -h localhost + psql -c 'CREATE ROLE django SUPERUSER LOGIN CREATEDB;' -U postgres + psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres + psql -c 'CREATE DATABASE test_pg_database;' -U postgres + psql -c 'CREATE EXTENSION postgis;' -U postgres -d test_pg_database + psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d test_pg_database - name: Run Tests run: | TOXENV=django poetry run tox TOXENV=nodjango poetry run tox - -