mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Use redis as service
This commit is contained in:
parent
9be7d01fdc
commit
437aad3da5
1 changed files with 8 additions and 5 deletions
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue