Release 2.4.5 (#67) #154
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-20.04] | |
tarantool: | |
- '1.10' | |
- '2.6' | |
- '2.7' | |
- '2.8' | |
- '2.10' | |
runs-on: ${{ matrix.runs-on }} | |
env: | |
CMAKE_LDOC_FIND_REQUIRED: 'YES' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8.14" | |
- uses: tarantool/setup-tarantool@v2 | |
with: | |
tarantool-version: ${{ matrix.tarantool }} | |
# Setup python packages | |
- name: Cache pip packages | |
uses: actions/cache@v3 | |
id: cache-venv | |
with: | |
path: ./venv | |
key: cache-venv-${{ matrix.runs-on }}-01 | |
- name: Run pip install | |
run: | | |
python -m venv ./venv && . ./venv/bin/activate | |
pip install -r test/requirements.txt | |
if: steps.cache-venv.outputs.cache-hit != 'true' | |
- run: echo "$PWD/venv/bin" >> $GITHUB_PATH | |
# Setup luacheck and ldoc | |
- name: Cache rocks | |
uses: actions/cache@v3 | |
id: cache-rocks | |
with: | |
path: .rocks/ | |
key: cache-rocks-${{ matrix.runs-on }}-01 | |
- | |
run: tarantoolctl rocks install luacheck | |
if: steps.cache-rocks.outputs.cache-hit != 'true' | |
- | |
run: tarantoolctl rocks install ldoc --server=https://tarantool.github.io/LDoc/ | |
if: steps.cache-rocks.outputs.cache-hit != 'true' | |
- run: echo ".rocks/bin" >> $GITHUB_PATH | |
- run: luacheck membership-scm-1.rockspec | |
- run: flake8 test --ignore=E501 | |
- run: tarantoolctl rocks make | |
- run: pytest -v | |
# Cleanup cached paths | |
- run: tarantoolctl rocks remove membership |