Ensure virtualenv is activated before running tests

Seems scripts aren't deep merged
This commit is contained in:
Jake Howard 2022-09-13 21:14:48 +01:00
parent afcadbf1ef
commit 0646610f0c
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -64,9 +64,8 @@ test_python:
variables:
POSTGRES_HOST_AUTH_METHOD: trust
DATABASE_URL: postgres://postgres@postgres/postgres
before_script:
- apt-get update && apt-get install --yes git libpq-dev
script:
- apt-get update && apt-get install --yes git libpq-dev
- ./manage.py collectstatic --noinput --clear
- coverage run ./manage.py test
- coverage report