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