From 75e4092dadd12976f915010a7c0127202e6c6089 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 3 Mar 2025 16:19:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(ci)=20add=20Redis=20requirement=20?= =?UTF-8?q?for=20backend=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Redis was made a required dependency for running project tests. Update CI environment to include Redis instance as tests now depend on it for proper execution. Affects all backend test suites. This dependency was intorduced by the lobby service. --- .github/workflows/meet.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/meet.yml b/.github/workflows/meet.yml index 5f4ed1ce..0d2c5618 100644 --- a/.github/workflows/meet.yml +++ b/.github/workflows/meet.yml @@ -110,6 +110,16 @@ jobs: - 5432:5432 # needed because the postgres container does not provide a healthcheck options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + redis: + image: redis:5 + ports: + - 6379:6379 + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 env: DJANGO_CONFIGURATION: Test @@ -121,6 +131,7 @@ jobs: DB_USER: dinum DB_PASSWORD: pass DB_PORT: 5432 + REDIS_URL: redis://localhost:6379/1 STORAGES_STATICFILES_BACKEND: django.contrib.staticfiles.storage.StaticFilesStorage LIVEKIT_API_SECRET: secret LIVEKIT_API_KEY: devkey