From 652b0f626367c0d1342af3b821bf30e99bd16833 Mon Sep 17 00:00:00 2001 From: igorcoding Date: Sat, 30 Dec 2023 13:58:41 +0300 Subject: [PATCH] investigating tt --- .github/workflows/actions.yaml | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 61e68a2..ede5f1f 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -8,7 +8,11 @@ jobs: matrix: os: [ ubuntu-latest, macos-latest ] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10'] - tarantool: ['1.10', '2'] + tarantool: + - '1.10' + - '2.8' + - '2.10' + - '2.11' exclude: - os: macos-latest tarantool: '1.10' @@ -25,20 +29,28 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install Tarantool ${{ matrix.tarantool }} + - name: Setup tt run: | - if [ "$RUNNER_OS" == "Linux" ]; then - curl -L https://tarantool.io/nTmSHOX/release/${{ matrix.tarantool }}/installer.sh | bash - sudo apt-get -y install tarantool - elif [ "$RUNNER_OS" == "macOS" ]; then - brew install tarantool - else - echo "$RUNNER_OS not supported" - exit 1 - fi + curl -L https://tarantool.io/release/2/installer.sh | sudo bash + sudo apt install -y tt + tt version + tt init + + - name: Install tarantool ${{ matrix.tarantool }} + if: ${{ matrix.tarantool != 'master' && matrix.os == 'ubuntu-latest' }} + uses: tarantool/setup-tarantool@v2 + with: + tarantool-version: ${{ matrix.tarantool }} + + - name: Install tarantool ${{ matrix.tarantool }} + if: matrix.os == 'macos-latest' + run: | + tt install ${{ matrix.tarantool }} + - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel coveralls + - name: Run tests run: | if [[ "$RUNNER_OS" == "Linux" && ${{ matrix.python-version }} == "3.12" && ${{ matrix.tarantool }} == "2" ]]; then