Skip to content

Commit

Permalink
add pypy to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Aug 12, 2023
1 parent 008038c commit 71b1302
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.10']
tarantool: ['1.10', '2']
exclude:
- os: macos-latest
tarantool: '1.10'
- os: macos-latest
tarantool: '2.7'
- python-version: 'pypy3.10'
tarantool: '1.10'

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Tarantool ${{ matrix.tarantool }}
Expand Down Expand Up @@ -62,11 +62,11 @@ jobs:
- test

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4

- name: Install cibuildwheel
run: python -m pip install --upgrade cibuildwheel
Expand All @@ -76,7 +76,7 @@ jobs:
env:
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-*"

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
Expand All @@ -92,19 +92,19 @@ jobs:
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
- run: echo "Current tag is ${{ steps.get_tag.outputs.TAG }}"
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine build
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: wheels
path: wheels
Expand Down Expand Up @@ -133,12 +133,12 @@ jobs:
needs:
- test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.11'

Expand All @@ -151,7 +151,7 @@ jobs:
run: make docs

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/_build/html
2 changes: 1 addition & 1 deletion tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import uuid

import asynctnt
from tests._testbase import check_version
from asynctnt.connection import ConnectionState
from asynctnt.exceptions import (
ErrorCode,
Expand All @@ -11,6 +10,7 @@
)
from asynctnt.instance import TarantoolSyncInstance
from tests import BaseTarantoolTestCase
from tests._testbase import check_version


class ConnectTestCase(BaseTarantoolTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mp_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import pytz

from asynctnt import IProtoError
from tests._testbase import ensure_version
from asynctnt.exceptions import ErrorCode, TarantoolDatabaseError
from tests import BaseTarantoolTestCase
from tests._testbase import ensure_version


class MpExtTestCase(BaseTarantoolTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_op_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import asynctnt
from asynctnt import PushIterator, Response
from tests._testbase import ensure_version
from asynctnt.exceptions import TarantoolDatabaseError, TarantoolNotConnectedError
from tests import BaseTarantoolTestCase
from tests._testbase import ensure_version


class PushTestCase(BaseTarantoolTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_op_sql_execute.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from asynctnt import Response
from tests._testbase import ensure_version
from tests import BaseTarantoolTestCase
from tests._testbase import ensure_version


class SQLExecuteTestCase(BaseTarantoolTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_op_sql_prepared.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from asynctnt import Response
from tests._testbase import ensure_version
from asynctnt.prepared import PreparedStatement
from tests import BaseTarantoolTestCase
from tests._testbase import ensure_version


class SQLPreparedStatementTestCase(BaseTarantoolTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stream.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import asyncio

from tests._testbase import ensure_bin_version, ensure_version
from asynctnt.exceptions import ErrorCode, TarantoolDatabaseError
from tests import BaseTarantoolTestCase
from tests._testbase import ensure_bin_version, ensure_version


@ensure_bin_version(min=(2, 10))
Expand Down

0 comments on commit 71b1302

Please sign in to comment.