Skip to content

Commit

Permalink
tests: Pass in CKAN_SITE_URL env var when creating test container
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Nov 8, 2023
1 parent 262ff7d commit bfceadf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
- name: Create ckan container
run: |
docker create --name test_ckan --network ${{ job.container.network }} --network-alias ckan \
-e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" \
-e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -e CKAN_SITE_URL=http://test.ckan.net \
-v "/var/run/docker.sock":"/var/run/docker.sock" \
-v "/home/runner/work":"/__w" -v "/home/runner/work/_temp":"/__w/_temp" \
-v "/home/runner/work/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" \
-v "/home/runner/work/_temp/_github_home":"/github/home" \
Expand All @@ -75,8 +76,6 @@ jobs:
run: |
docker exec test_ckan $WORKDIR/bin/install_test_requirements.sh ${{ matrix.ckan-version }}
- name: Run tests
env:
CKAN_SITE_URL: http://test.ckan.net
run: |
docker exec test_ckan nosetests --ckan --with-pylons=$WORKDIR/test.ini \
--with-coverage --cover-package=ckanext.geocat --cover-inclusive --cover-erase --cover-tests $WORKDIR/ckanext/geocat

0 comments on commit bfceadf

Please sign in to comment.