diff --git a/docker-compose.yml b/docker-compose.yml index 7773ec1c2..eba643135 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,17 +22,9 @@ services: - redis - postgres command: - - bash - - '-c' - - | - echo "Downloading fixtures" - wget -q https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/ca0f13b8-d6ed-11ee-870b-8e93953183bb/fixture.json - - echo "Running Django migrations..." - poetry run ./manage.py migrate - - echo "Running pytest..." - poetry run pytest -v + - poetry + - run + - ./scripts/run-tests.sh volumes: postgres-data: diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh new file mode 100644 index 000000000..17ece2ccd --- /dev/null +++ b/scripts/run-tests.sh @@ -0,0 +1,8 @@ +echo "Downloading fixtures" +wget -q https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/ca0f13b8-d6ed-11ee-870b-8e93953183bb/fixture.json + +echo "Running Django migrations..." +./manage.py migrate + +echo "Running pytest..." +ulimit -n unlimited && pytest