Skip to content

Commit 62dfdfc

Browse files
Final run
1 parent 944c8ac commit 62dfdfc

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/reusable_testing.yml

+32-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ on:
1212
jobs:
1313
run_tests:
1414
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+
- ''
1535
steps:
1636
- name: Clone the tarantool-python connector
1737
uses: actions/checkout@v2
@@ -28,12 +48,22 @@ jobs:
2848
# dependencies when migrating to other OS version.
2949
run: sudo dpkg -i tarantool*.deb
3050

31-
- name: Setup python3 for tests
51+
- name: Setup Python for tests
3252
uses: actions/setup-python@v2
3353
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 }}
3559

3660
- 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'
3767
run: pip install -r requirements.txt
3868

3969
- name: Install test requirements

.github/workflows/testing.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
python-version: ${{ matrix.python }}
7777

78-
- name: Setup specific msgpack python package
78+
- name: Install msgpack python package
7979
if: matrix.msgpack-deps != ''
8080
run: pip install ${{ matrix.msgpack-deps }}
8181

@@ -115,6 +115,7 @@ jobs:
115115
- '2.x-latest'
116116
python:
117117
- '2.7'
118+
- '3.4'
118119
- '3.5'
119120
- '3.6'
120121
- '3.7'
@@ -152,7 +153,7 @@ jobs:
152153
with:
153154
python-version: ${{ matrix.python }}
154155

155-
- name: Setup specific msgpack python package
156+
- name: Install msgpack python package
156157
if: matrix.msgpack-deps != ''
157158
run: pip install ${{ matrix.msgpack-deps }}
158159

0 commit comments

Comments
 (0)