From cf5a5c4c871975df8e7b9a321e975311630fef21 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyalyuev Date: Tue, 15 Nov 2022 14:46:54 +0300 Subject: [PATCH] Add Redis service to tests --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8919a61..31a407f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,12 @@ on: jobs: tests: runs-on: ubuntu-latest + + services: + redis: + image: redis + options: --entrypoint redis-server + steps: - name: Checkout uses: actions/checkout@v3 @@ -24,6 +30,8 @@ jobs: pip install coverage coveralls - name: Run Tests + env: + REDIS_URL: redis://redis:6379/0 run: | python manage.py collectstatic --noinput python manage.py migrate --noinput