|
27 | 27 | - '2.8' |
28 | 28 | - '2.10' |
29 | 29 | - '2.11' |
| 30 | + - 'master' |
30 | 31 | python: |
31 | 32 | - '3.6' |
32 | 33 | - '3.7' |
@@ -57,11 +58,45 @@ jobs: |
57 | 58 | - name: Clone the connector |
58 | 59 | uses: actions/checkout@v3 |
59 | 60 |
|
| 61 | + - name: Setup tt |
| 62 | + run: | |
| 63 | + curl -L https://tarantool.io/release/2/installer.sh | sudo bash |
| 64 | + sudo apt install -y tt |
| 65 | + tt version |
| 66 | + tt init |
| 67 | +
|
60 | 68 | - name: Install tarantool ${{ matrix.tarantool }} |
| 69 | + if: matrix.tarantool != 'master' |
61 | 70 | uses: tarantool/setup-tarantool@v2 |
62 | 71 | with: |
63 | 72 | tarantool-version: ${{ matrix.tarantool }} |
64 | 73 |
|
| 74 | + - name: Get Tarantool master latest commit |
| 75 | + if: matrix.tarantool == 'master' |
| 76 | + run: | |
| 77 | + commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch master | head -c 8) |
| 78 | + echo "LATEST_COMMIT=${commit_hash}" >> $GITHUB_ENV |
| 79 | + shell: bash |
| 80 | + |
| 81 | + - name: Cache Tarantool master |
| 82 | + if: matrix.tarantool == 'master' |
| 83 | + id: cache-latest |
| 84 | + uses: actions/cache@v3 |
| 85 | + with: |
| 86 | + path: | |
| 87 | + ${{ github.workspace }}/bin |
| 88 | + ${{ github.workspace }}/include |
| 89 | + key: cache-latest-${{ env.LATEST_COMMIT }} |
| 90 | + |
| 91 | + - name: Setup Tarantool master |
| 92 | + if: matrix.tarantool == 'master' && steps.cache-latest.outputs.cache-hit != 'true' |
| 93 | + run: | |
| 94 | + tt install tarantool master |
| 95 | +
|
| 96 | + - name: Add Tarantool master to PATH |
| 97 | + if: matrix.tarantool == 'master' |
| 98 | + run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH |
| 99 | + |
65 | 100 | - name: Setup Python for tests |
66 | 101 | uses: actions/setup-python@v4 |
67 | 102 | with: |
|
86 | 121 |
|
87 | 122 | - name: Install the crud module for testing purposes |
88 | 123 | run: | |
89 | | - curl -L https://tarantool.io/release/2/installer.sh | bash |
90 | | - sudo apt install -y tt |
91 | 124 | tt rocks install crud |
92 | 125 |
|
93 | 126 | - name: Run tests |
|
0 commit comments