File tree 2 files changed +35
-4
lines changed
2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
run_tests :
14
14
runs-on : ubuntu-20.04
15
+
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ python :
20
+ - ' 2.7'
21
+ - ' 3.4'
22
+ - ' 3.5'
23
+ - ' 3.6'
24
+ - ' 3.7'
25
+ - ' 3.8'
26
+ - ' 3.9'
27
+ - ' 3.10'
28
+ msgpack-deps :
29
+ - ' msgpack-python==0.4.0'
30
+ - ' msgpack==0.5.0'
31
+ - ' msgpack==0.6.2'
32
+ - ' msgpack==1.0.0'
33
+ # latest msgpack will be installed as a part of requirements.txt
34
+ - ' '
15
35
steps :
16
36
- name : Clone the tarantool-python connector
17
37
uses : actions/checkout@v2
@@ -28,12 +48,22 @@ jobs:
28
48
# dependencies when migrating to other OS version.
29
49
run : sudo dpkg -i tarantool*.deb
30
50
31
- - name : Setup python3 for tests
51
+ - name : Setup Python for tests
32
52
uses : actions/setup-python@v2
33
53
with :
34
- python-version : 3.7
54
+ python-version : ${{ matrix.python }}
55
+
56
+ - name : Install msgpack python package
57
+ if : matrix.msgpack-deps != ''
58
+ run : pip install ${{ matrix.msgpack-deps }}
35
59
36
60
- name : Install connector requirements
61
+ # msgpack package is a replacement for deprecated msgpack-python.
62
+ # To test compatibility with msgpack-python we must ignore
63
+ # requirements.txt install, since it will install newest msgpack.
64
+ # Beware that if any new dependency will be added to requirements.txt,
65
+ # this step will be invalid.
66
+ if : matrix.msgpack-deps != 'msgpack-python==0.4.0'
37
67
run : pip install -r requirements.txt
38
68
39
69
- name : Install test requirements
Original file line number Diff line number Diff line change 75
75
with :
76
76
python-version : ${{ matrix.python }}
77
77
78
- - name : Setup specific msgpack python package
78
+ - name : Install msgpack python package
79
79
if : matrix.msgpack-deps != ''
80
80
run : pip install ${{ matrix.msgpack-deps }}
81
81
@@ -115,6 +115,7 @@ jobs:
115
115
- ' 2.x-latest'
116
116
python :
117
117
- ' 2.7'
118
+ - ' 3.4'
118
119
- ' 3.5'
119
120
- ' 3.6'
120
121
- ' 3.7'
@@ -152,7 +153,7 @@ jobs:
152
153
with :
153
154
python-version : ${{ matrix.python }}
154
155
155
- - name : Setup specific msgpack python package
156
+ - name : Install msgpack python package
156
157
if : matrix.msgpack-deps != ''
157
158
run : pip install ${{ matrix.msgpack-deps }}
158
159
You can’t perform that action at this time.
0 commit comments