1
+ name : RE Tests
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - ' docs/**'
7
+ - ' **/*.rst'
8
+ - ' **/*.md'
9
+ branches :
10
+ - master
11
+ - ' [0-9].[0-9]'
12
+ pull_request :
13
+ branches :
14
+ - master
15
+ - ' [0-9].[0-9]'
16
+ schedule :
17
+ - cron : ' 0 1 * * *' # nightly build
18
+
19
+ concurrency :
20
+ group : ${{ github.event.pull_request.number || github.ref }}
21
+ cancel-in-progress : true
22
+
23
+ permissions :
24
+ contents : read # to fetch code (actions/checkout)
25
+
26
+ jobs :
27
+ enterprise_tests :
28
+ runs-on : ubuntu-latest
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ python-version : ['3.10']
33
+ test-type : ['standalone']
34
+ connection-type : ['hiredis', 'plain']
35
+ re-build : ["7.2.4-92"]
36
+ env :
37
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
38
+ name : RE [${{ matrix.re-build }} ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}}]
39
+ steps :
40
+ - name : Checkout code
41
+ uses : actions/checkout@v4
42
+
43
+ - name : Clone Redis EE docker repository
44
+ uses : actions/checkout@v4
45
+ with :
46
+ repository : RedisLabs/redis-ee-docker
47
+ path : redis-ee
48
+
49
+ - name : Set up python ${{ matrix.python-version }}
50
+ uses : actions/setup-python@v5
51
+ with :
52
+ python-version : ${{ matrix.python-version }}
53
+ cache : ' pip'
54
+
55
+ - name : Build cluster
56
+ working-directory : redis-ee
57
+ env :
58
+ IMAGE : " redislabs/redis-internal:${{ matrix.re-build }}"
59
+
60
+ RE_PASS : 12345
61
+ RE_CLUSTER_NAME : test
62
+ RE_USE_OSS_CLUSTER : false
63
+ RE_DB_PORT : 6379
64
+ DOCKER_ACCESS_TOKEN : ${{ secrets.DOCKER_ACCESS_TOKEN }}
65
+ DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
66
+ run : ./build.sh
67
+
68
+ - name : Run tests
69
+ run : |
70
+ pip install -U setuptools wheel
71
+ pip install -r requirements.txt
72
+ pip install -r dev_requirements.txt
73
+ if [ "${{matrix.connection-type}}" == "hiredis" ]; then
74
+ pip install hiredis
75
+ fi
76
+ invoke devenv
77
+ sleep 10 # time to settle
78
+ invoke ${{matrix.test-type}}-tests
0 commit comments