ci: fix tarantool release branch #364
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: fast_testing | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
linux: | |
# We want to run on external PRs, but not on our own internal | |
# PRs as they'll be run by the push to the branch. | |
# | |
# The main trick is described here: | |
# https://github.com/Dart-Code/Dart-Code/pull/2375 | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
fail-fast: false | |
matrix: | |
tarantool: | |
- '2.10' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install tarantool ${{ matrix.tarantool }} | |
uses: tarantool/setup-tarantool@v1 | |
with: | |
tarantool-version: ${{ matrix.tarantool }} | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Clone the module | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Start Kafka | |
uses: ybyzek/[email protected] | |
with: | |
type: cp-all-in-one-community | |
- name: Install Python dependencies | |
run: pip3 install -r tests/requirements.txt | |
- name: Build module | |
run: | | |
export MAKEFLAGS=-j8 | |
tarantoolctl rocks STATIC_BUILD=ON make | |
- name: Run tarantool application | |
run: TT_LOG=tarantool.log tarantool tests/app.lua > output.log 2>&1 & | |
- name: Run test | |
run: KAFKA_HOST=localhost:9092 pytest tests | |
- name: Print Tarantool logs | |
if: always() | |
run: | | |
cat tarantool.log | |
cat output.log |