From 7a33b527d06c5e7cac454b6844e4455dba1865cf Mon Sep 17 00:00:00 2001 From: Jonathan S Berry Date: Tue, 19 Nov 2024 12:01:21 +0000 Subject: [PATCH] Fix github actions --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a571829..b76168f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,10 +44,8 @@ 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 - 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 + pytest --ckan-ini=test.ini --cov=ckanext.dataset_subscriptions --disable-warnings ckanext/dataset_subscriptions \ No newline at end of file