Skip to content

Add tests for Redis SSL connection #16

Add tests for Redis SSL connection

Add tests for Redis SSL connection #16

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
unit:
runs-on: ubuntu-latest
container:
image: ubuntu
services:
redis:
image: redis
ports:
- 6399:6379
redis-ssl:
image: bitnami/redis
env:
REDIS_PORT_NUMBER: "0"
REDIS_TLS_ENABLED: "yes"
REDIS_TLS_PORT_NUMBER: "7000"
REDIS_TLS_CERT_FILE: "/opt/bitnami/redis/certs/redis.crt"
REDIS_TLS_KEY_FILE: "/opt/bitnami/redis/certs/redis.key"
REDIS_TLS_CA_FILE: "/opt/bitnami/redis/certs/ca.crt"
REDIS_TLS_AUTH_CLIENTS: "no"
ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 7000:7000
volumes:
- ${{ github.workspace }}/tests/etc/redis:/opt/bitnami/redis/certs
options: --name redis-ssl
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Restart redis-ssl
uses: docker://docker
with:
argrs: docker restart redis-ssl
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install -r requirements-testing.txt
- name: Run tests
run: tox