From 437aad3da59e526a35f8d1bcddd840e3c5df31b0 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 13 Jun 2021 03:33:07 +0300 Subject: [PATCH] Use redis as service --- .github/workflows/tests.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d87811c7..48e6d525 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,14 @@ on: jobs: build: + services: + redis: + image: redis + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 strategy: max-parallel: 9 fail-fast: true @@ -64,11 +72,6 @@ jobs: run: | poetry run black --check --diff aiogram tests - - name: Start Redis - uses: supercharge/redis-github-action@1.2.0 - with: - redis-version: 6 - - name: Run tests run: | poetry run pytest --cov=aiogram --cov-config .coveragerc --cov-report=xml --redis redis://redis:6379/0