Skip to content

disable protected mode #5

disable protected mode

disable protected mode #5

Workflow file for this run

name: Unit Tests & deploy library
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9.13"]
services:
redis:
image: redis/redis-stack:latest
ports:
- 6379:6379
options: >-
--entrypoint redis-server
--protected-mode no
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Running all PyTests
run: |
export REDIS_OM_URL=redis://localhost:6379
pytest