diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 921f17b7..e02c8c9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,16 @@ jobs: - name: Run DB Migrations run: docker compose -f local.yml run --rm django python manage.py migrate + - name: Check Celery Redis Transport + run: | + docker compose -f local.yml run --rm django python -c ' + from config.celery_app import app + + with app.connection_for_write() as connection: + connection.ensure_connection(max_retries=0) + connection.channel() + ' + - name: Run Django Tests run: docker compose -f local.yml run django pytest diff --git a/requirements/base.txt b/requirements/base.txt index 2cf8ecc4..0939859f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,7 +6,8 @@ argon2-cffi==23.1.0 # https://github.com/hynek/argon2_cffi whitenoise==6.6.0 # https://github.com/evansd/whitenoise redis==5.0.1 # https://github.com/redis/redis-py hiredis==2.2.3 # https://github.com/redis/hiredis-py -celery==5.3.6 # pyup: < 6.0 # https://github.com/celery/celery +celery[redis]==5.3.6 # pyup: < 6.0 # https://github.com/celery/celery +kombu[redis]==5.6.2 # https://github.com/celery/kombu flower==2.0.1 # https://github.com/mher/flower xmltodict==0.13.0 # https://github.com/martinblech/xmltodict.git