From 0079b6d96d7fd5951263d891ca2bc5c55f46cb06 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 28 Dec 2020 19:12:07 +0100 Subject: [PATCH] Don't use external libraries when running tests --- .gitlab-ci.yml | 2 +- tfjm/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 863abd5..7b3a6b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,7 @@ py39: stage: test image: python:3.9-alpine before_script: - - apk add --no-cache gcc libmagic + - apk add --no-cache libmagic - pip install tox --no-cache-dir script: tox -e py39 diff --git a/tfjm/settings.py b/tfjm/settings.py index 3fbdcb0..6e47c82 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -68,7 +68,7 @@ INSTALLED_APPS = [ 'participation', ] -if "test" not in sys.argv: # pragma: no cover +if "test" not in sys.argv and not "makemigrations" in sys.argv: # pragma: no cover INSTALLED_APPS += [ 'cas_server', 'django_extensions',