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 7a33b52 commit 2c6a82c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 2c6a82c

Please sign in to comment.