This commit is contained in:
2025-03-03 18:52:31 +03:00
parent 50d343df8f
commit 2212fa2716
2 changed files with 6 additions and 4 deletions

View File

@@ -8,15 +8,14 @@ test:
stage: test stage: test
image: python:3.11-alpine image: python:3.11-alpine
script: script:
- pip install -r requirements.txt - pip install -q -r requirements.txt
- python -m unittest discover tests - python -m unittest discover tests
only: only:
- main - main
before_script: before_script:
- apk add --no-cache docker-cli curl jq # Устанавливаем curl и jq - apk add --no-cache docker-cli curl jq
- | - |
# Wait for Docker to be ready
until docker info; do until docker info; do
echo "Waiting for Docker to be ready..." echo "Waiting for Docker to be ready..."
sleep 5 sleep 5

View File

@@ -20,7 +20,7 @@ services:
ports: ports:
- "6379:6379" - "6379:6379"
volumes: volumes:
- ./data:/data - redis_data:/data
environment: environment:
- TZ=Europe/Moscow - TZ=Europe/Moscow
healthcheck: healthcheck:
@@ -28,3 +28,6 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3
volumes:
redis_data: