Skip to content

Commit

Permalink
tests: Run tests as user ckan-sys
Browse files Browse the repository at this point in the history
Necessary so that pytest coverage can save its database file in the /srv/app directory, which ckan-sys owns.
  • Loading branch information
bellisk committed Nov 14, 2024
1 parent e1771f3 commit 000563b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ jobs:
docker exec -u root test_ckan $WORKDIR/bin/install_test_requirements.sh
- name: Run tests
run: |
docker exec test_ckan pytest --ckan-ini=$WORKDIR/test.ini --disable-warnings --cov=ckanext.switzerland \
docker exec -u ckan-sys test_ckan pytest --ckan-ini=$WORKDIR/test.ini --disable-warnings --cov=ckanext.switzerland \
$WORKDIR/ckanext/switzerland/tests

0 comments on commit 000563b

Please sign in to comment.