forked from mirrors/bookwyrm
Use in-memory cache for CI tests
This commit is contained in:
parent
66456fc508
commit
2cad762646
2 changed files with 5 additions and 0 deletions
1
.github/workflows/django-tests.yml
vendored
1
.github/workflows/django-tests.yml
vendored
|
@ -47,6 +47,7 @@ jobs:
|
|||
CELERY_BROKER: ""
|
||||
REDIS_BROKER_PORT: 6379
|
||||
REDIS_BROKER_PASSWORD: beep
|
||||
USE_LOCAL_CACHE: true
|
||||
FLOWER_PORT: 8888
|
||||
EMAIL_HOST: "smtp.mailgun.org"
|
||||
EMAIL_PORT: 587
|
||||
|
|
|
@ -130,6 +130,10 @@ CACHES = {
|
|||
},
|
||||
}
|
||||
}
|
||||
if env("USE_LOCAL_CACHE", False):
|
||||
# use the default local memory cache for testing
|
||||
CACHE = None
|
||||
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
|
||||
SESSION_CACHE_ALIAS = "default"
|
||||
|
||||
|
|
Loading…
Reference in a new issue