Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Nov 19, 2024
1 parent 6d65155 commit 7a33b52
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pytest --ckan-ini=test.ini --cov=ckanext.dataset_subscriptions --disable-warnings ckanext/dataset_subscriptions

0 comments on commit 7a33b52

Please sign in to comment.