diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b96bb1ce..992e7d68 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,11 +35,11 @@ jobs: run: sudo /etc/init.d/postgresql start - name: Allow root to create PostgreSQL databases - run: su - postgres -c "createuser --createdb root" + run: sudo su - postgres -c "createuser --createdb root" - name: Create PostGIS extension run: > - su - postgres + sudo su - postgres -c "psql template1 -c 'create extension postgis'" - name: Install Tox and tox-gh-actions