mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
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: ""
|
CELERY_BROKER: ""
|
||||||
REDIS_BROKER_PORT: 6379
|
REDIS_BROKER_PORT: 6379
|
||||||
REDIS_BROKER_PASSWORD: beep
|
REDIS_BROKER_PASSWORD: beep
|
||||||
|
USE_LOCAL_CACHE: true
|
||||||
FLOWER_PORT: 8888
|
FLOWER_PORT: 8888
|
||||||
EMAIL_HOST: "smtp.mailgun.org"
|
EMAIL_HOST: "smtp.mailgun.org"
|
||||||
EMAIL_PORT: 587
|
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_ENGINE = "django.contrib.sessions.backends.cache"
|
||||||
SESSION_CACHE_ALIAS = "default"
|
SESSION_CACHE_ALIAS = "default"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue