mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-27 05:50:05 +00:00
Use in-memory backends for Celery in tests and workflows
At the moment, this doesn't have much of an effect since most task calls are mock'd out.
This commit is contained in:
parent
a659661b24
commit
7e6ba93833
3 changed files with 11 additions and 31 deletions
6
.github/workflows/django-tests.yml
vendored
6
.github/workflows/django-tests.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Run Python Tests
|
name: Run Python Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -53,9 +54,8 @@ jobs:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_DB: github_actions
|
POSTGRES_DB: github_actions
|
||||||
POSTGRES_HOST: 127.0.0.1
|
POSTGRES_HOST: 127.0.0.1
|
||||||
CELERY_BROKER: ""
|
CELERY_BROKER_URL: memory://
|
||||||
REDIS_BROKER_PORT: 6379
|
CELERY_RESULT_BACKEND: cache+memory://
|
||||||
REDIS_BROKER_PASSWORD: beep
|
|
||||||
USE_DUMMY_CACHE: true
|
USE_DUMMY_CACHE: true
|
||||||
FLOWER_PORT: 8888
|
FLOWER_PORT: 8888
|
||||||
EMAIL_HOST: "smtp.mailgun.org"
|
EMAIL_HOST: "smtp.mailgun.org"
|
||||||
|
|
21
.github/workflows/mypy.yml
vendored
21
.github/workflows/mypy.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Mypy
|
name: Mypy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -24,27 +25,9 @@ jobs:
|
||||||
- name: Analysing the code with mypy
|
- name: Analysing the code with mypy
|
||||||
env:
|
env:
|
||||||
SECRET_KEY: beepbeep
|
SECRET_KEY: beepbeep
|
||||||
DEBUG: false
|
|
||||||
USE_HTTPS: true
|
|
||||||
DOMAIN: your.domain.here
|
DOMAIN: your.domain.here
|
||||||
BOOKWYRM_DATABASE_BACKEND: postgres
|
EMAIL_HOST: ""
|
||||||
MEDIA_ROOT: images/
|
|
||||||
POSTGRES_PASSWORD: hunter2
|
|
||||||
POSTGRES_USER: postgres
|
|
||||||
POSTGRES_DB: github_actions
|
|
||||||
POSTGRES_HOST: 127.0.0.1
|
|
||||||
CELERY_BROKER: ""
|
|
||||||
REDIS_BROKER_PORT: 6379
|
|
||||||
REDIS_BROKER_PASSWORD: beep
|
|
||||||
USE_DUMMY_CACHE: true
|
|
||||||
FLOWER_PORT: 8888
|
|
||||||
EMAIL_HOST: "smtp.mailgun.org"
|
|
||||||
EMAIL_PORT: 587
|
|
||||||
EMAIL_HOST_USER: ""
|
EMAIL_HOST_USER: ""
|
||||||
EMAIL_HOST_PASSWORD: ""
|
EMAIL_HOST_PASSWORD: ""
|
||||||
EMAIL_USE_TLS: true
|
|
||||||
ENABLE_PREVIEW_IMAGES: false
|
|
||||||
ENABLE_THUMBNAIL_GENERATION: true
|
|
||||||
HTTP_X_FORWARDED_PROTO: false
|
|
||||||
run: |
|
run: |
|
||||||
mypy bookwyrm celerywyrm
|
mypy bookwyrm celerywyrm
|
||||||
|
|
|
@ -12,11 +12,8 @@ env =
|
||||||
DOMAIN = your.domain.here
|
DOMAIN = your.domain.here
|
||||||
BOOKWYRM_DATABASE_BACKEND = postgres
|
BOOKWYRM_DATABASE_BACKEND = postgres
|
||||||
MEDIA_ROOT = images/
|
MEDIA_ROOT = images/
|
||||||
CELERY_BROKER = ""
|
CELERY_BROKER_URL = memory://
|
||||||
REDIS_BROKER_PORT = 6379
|
CELERY_RESULT_BACKEND = cache+memory://
|
||||||
REDIS_BROKER_PASSWORD = beep
|
|
||||||
REDIS_ACTIVITY_PORT = 6379
|
|
||||||
REDIS_ACTIVITY_PASSWORD = beep
|
|
||||||
USE_DUMMY_CACHE = true
|
USE_DUMMY_CACHE = true
|
||||||
FLOWER_PORT = 8888
|
FLOWER_PORT = 8888
|
||||||
EMAIL_HOST = "smtp.mailgun.org"
|
EMAIL_HOST = "smtp.mailgun.org"
|
||||||
|
|
Loading…
Reference in a new issue