From a558e25be6fbf2025f39df345eeaa49b2d66663c Mon Sep 17 00:00:00 2001 From: Ronald Krist <34395689+SilvyPuzzlewell@users.noreply.github.com> Date: Wed, 30 Aug 2023 11:56:36 +0200 Subject: [PATCH] redis in github actions --- .github/workflows/main.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6577bb73..7d7482ac 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -5,6 +5,18 @@ on: [ push ] jobs: build: runs-on: ubuntu-latest + services: + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 6379:6379 strategy: matrix: python-version: [ "3.9", "3.10" ]