diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b76168f..e63072c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,8 +44,11 @@ jobs: 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 - - name: Run tests - run: | echo "Upgrading DB" ckan -c test.ini db upgrade - pytest --ckan-ini=test.ini --cov=ckanext.dataset_subscriptions --disable-warnings ckanext/dataset_subscriptions \ No newline at end of file + sudo apt-get install -y postgresql-client + psql -Atx postgresql://ckan_default:pass@localhost/ckan_test -c "\d activity" + psql -Atx postgresql://ckan_default:pass@localhost/ckan_test -c "ALTER TABLE activity ADD COLUMN permission_labels TEXT[];" + psql -Atx postgresql://ckan_default:pass@localhost/ckan_test -c "\d activity" + - name: Run tests + run: pytest --ckan-ini=test.ini --cov=ckanext.dataset_subscriptions --disable-warnings ckanext/dataset_subscriptions \ No newline at end of file