-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.26 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
unit:
runs-on: ubuntu-latest
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:z
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