Skip to content

Commit

Permalink
Simplify github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Nov 19, 2024
1 parent b66ade5 commit b031b70
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b031b70

Please sign in to comment.