60
60
python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
61
61
test-type : ['standalone', 'cluster']
62
62
connection-type : ['libvalkey', 'plain']
63
+ protocol-version : ['2','3']
63
64
env :
64
65
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
65
- name : Python ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests
66
+ name : Python ${{ matrix.python-version }} RESP${{ matrix.protocol-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests
66
67
steps :
67
68
- uses : actions/checkout@v4
68
69
- uses : actions/setup-python@v5
@@ -79,15 +80,15 @@ jobs:
79
80
fi
80
81
invoke devenv
81
82
sleep 10 # time to settle
82
- invoke ${{matrix.test-type}}-tests
83
+ invoke ${{matrix.test-type}}-tests --protocol=${{ matrix.protocol-version }}
83
84
if [[ "${{matrix.python-version}}" != pypy-* ]]; then
84
- invoke ${{matrix.test-type}}-tests --uvloop
85
+ invoke ${{matrix.test-type}}-tests --uvloop --protocol=${{ matrix.protocol-version }}
85
86
fi
86
87
87
88
- uses : actions/upload-artifact@v4
88
89
if : success() || failure()
89
90
with :
90
- name : pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}}
91
+ name : pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}}-RESP${{ matrix.protocol-version }}
91
92
path : ' ${{matrix.test-type}}*results.xml'
92
93
93
94
- name : Upload codecov coverage
97
98
token : ${{ secrets.CODECOV_TOKEN }}
98
99
99
100
100
- resp3_tests :
101
- runs-on : ubuntu-latest
102
- strategy :
103
- fail-fast : false
104
- matrix :
105
- python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
106
- test-type : ['standalone', 'cluster']
107
- connection-type : ['libvalkey', 'plain']
108
- env :
109
- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
110
- name : RESP3 [${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}}]
111
- steps :
112
- - uses : actions/checkout@v4
113
- - uses : actions/setup-python@v5
114
- with :
115
- python-version : ${{ matrix.python-version }}
116
- cache : ' pip'
117
- - name : run tests
118
- run : |
119
- pip install -U setuptools wheel
120
- pip install -r requirements.txt
121
- pip install -r dev_requirements.txt
122
- if [ "${{matrix.connection-type}}" == "libvalkey" ]; then
123
- pip install "libvalkey>=4.0.0b1"
124
- fi
125
- invoke devenv
126
- sleep 10 # time to settle
127
- invoke ${{matrix.test-type}}-tests --protocol=3
128
- if [[ "${{matrix.python-version}}" != pypy-* ]]; then
129
- invoke ${{matrix.test-type}}-tests --uvloop --protocol=3
130
- fi
131
-
132
- - uses : actions/upload-artifact@v4
133
- if : success() || failure()
134
- with :
135
- name : pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}}-resp3
136
- path : ' ${{matrix.test-type}}*results.xml'
137
-
138
- - name : Upload codecov coverage
139
- uses : codecov/codecov-action@v4
140
- with :
141
- fail_ci_if_error : false
142
- token : ${{ secrets.CODECOV_TOKEN }}
143
-
144
-
145
101
build_and_test_package :
146
102
name : Validate building and installing the package
147
103
runs-on : ubuntu-latest
0 commit comments