diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fcb2fec..8e1f5d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,13 +43,7 @@ jobs: # Replace default path to CKAN core config file with the one on the container sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini echo "Initialising DB" - ckan -c test.ini db init - echo "Upgrading DB" - ckan -c test.ini db upgrade - apt-get install -y postgresql-client - psql -Atx postgresql://ckan_default:pass@postgres/ckan_test -c "\d activity" - + ckan -c test.ini db init - name: Run tests run: | - psql -Atx postgresql://ckan_default:pass@postgres/ckan_test -c "\d activity" pytest --ckan-ini=test.ini --cov=ckanext.dataset_subscriptions --disable-warnings ckanext/dataset_subscriptions \ No newline at end of file