Skip to content

Commit 83867b7

Browse files
ligurioTotktonada
authored andcommitted
test: enable in continuous integration
Added a separate target to Makefile that runs integration tests and enabled testing in GH Actions. test-run supports all Tarantool versions and testing parametrized by supported tarantool versions 2.6 and 2.7. Added tests requires additional changes to support 1.10 so I have decided to not test it in CI.
1 parent 76cefbe commit 83867b7

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.8-dev]
17+
tarantool-version: [2.6, 2.7]
1718

1819
steps:
1920
- uses: actions/checkout@v2
20-
- name: Set up Python ${{ matrix.python-version }}
21+
- name: update git submodules
22+
run: git submodule update --init --recursive
23+
- name: set up Tarantool ${{ matrix.tarantool-version }}
24+
uses: tarantool/setup-tarantool@v1
25+
with:
26+
tarantool-version: ${{ matrix.tarantool-version }}
27+
- name: set up Python ${{ matrix.python-version }}
2128
uses: actions/setup-python@v2
2229
with:
2330
python-version: ${{ matrix.python-version }}
@@ -28,10 +35,26 @@ jobs:
2835
sudo apt update -y
2936
sudo apt-get -y install lua5.1 luarocks
3037
sudo luarocks install luacheck
38+
- name: set default pip to pip3
39+
run: |
40+
sudo rm -f /usr/local/bin/pip
41+
sudo ln -s /usr/bin/pip3 /usr/local/bin/pip
42+
- name: set default python and pip to v2.7
43+
if: ${{ matrix.python-version }} == 2.7
44+
run: |
45+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
46+
sudo python2 get-pip.py
47+
sudo rm -f /usr/bin/python
48+
sudo ln -s /usr/bin/python2 /usr/bin/python
49+
sudo rm -f /usr/local/bin/pip
50+
sudo ln -s /usr/local/bin/pip2 /usr/local/bin/pip
3151
- name: setup python dependencies
3252
run: |
3353
pip install -r requirements.txt
3454
pip install -r requirements-test.txt
3555
- name: run static analysis
3656
run: |
3757
make lint
58+
- name: run regression tests
59+
run: |
60+
make test

0 commit comments

Comments
 (0)