From 224a951796fa995cce87454f2cb602f1b4acf0bf Mon Sep 17 00:00:00 2001 From: Dmitriy Lyalyuev Date: Tue, 15 Nov 2022 16:39:00 +0300 Subject: [PATCH] trying to get it working --- .github/workflows/build.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b2a0115..ddb60df 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,17 @@ on: jobs: tests: runs-on: ubuntu-latest + services: + # Label used to access the service container + redis-later42: + # 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 steps: - name: Checkout uses: actions/checkout@v3 @@ -23,12 +34,6 @@ jobs: pip install -r requirements.txt pip install coverage coveralls - - name: Start Redis - uses: superchargejs/redis-github-action@1.4.0 - with: - redis-version: 5 - redis-container-name: redis-later42 - - name: Run Tests env: REDIS_URL: redis://redis-later42:6379/0