Skip to content

Commit

Permalink
Final run
Browse files Browse the repository at this point in the history
  • Loading branch information
DifferentialOrange committed Mar 22, 2022
1 parent 944c8ac commit 62dfdfc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ on:
jobs:
run_tests:
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
msgpack-deps:
- 'msgpack-python==0.4.0'
- 'msgpack==0.5.0'
- 'msgpack==0.6.2'
- 'msgpack==1.0.0'
# latest msgpack will be installed as a part of requirements.txt
- ''
steps:
- name: Clone the tarantool-python connector
uses: actions/checkout@v2
Expand All @@ -28,12 +48,22 @@ jobs:
# dependencies when migrating to other OS version.
run: sudo dpkg -i tarantool*.deb

- name: Setup python3 for tests
- name: Setup Python for tests
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: ${{ matrix.python }}

- name: Install msgpack python package
if: matrix.msgpack-deps != ''
run: pip install ${{ matrix.msgpack-deps }}

- name: Install connector requirements
# msgpack package is a replacement for deprecated msgpack-python.
# To test compatibility with msgpack-python we must ignore
# requirements.txt install, since it will install newest msgpack.
# Beware that if any new dependency will be added to requirements.txt,
# this step will be invalid.
if: matrix.msgpack-deps != 'msgpack-python==0.4.0'
run: pip install -r requirements.txt

- name: Install test requirements
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
with:
python-version: ${{ matrix.python }}

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

Expand Down Expand Up @@ -115,6 +115,7 @@ jobs:
- '2.x-latest'
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
Expand Down Expand Up @@ -152,7 +153,7 @@ jobs:
with:
python-version: ${{ matrix.python }}

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

Expand Down

0 comments on commit 62dfdfc

Please sign in to comment.