diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74a7f21..de787a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" \ @@ -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