-
Notifications
You must be signed in to change notification settings - Fork 17
63 lines (58 loc) · 1.95 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: test-run
on: [push, pull_request]
jobs:
build:
if: ( github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository ) &&
( github.repository == 'tarantool/test-run' )
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
tarantool-version: ['2.8', '2.10', '2.11']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: set up Tarantool ${{ matrix.tarantool-version }}
uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool-version }}
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: display python version
run: python -c "import sys; print(sys.version)"
- name: setup dependencies
run: |
sudo apt update -y
sudo apt-get -y install lua5.1 luarocks
sudo luarocks install luacheck
- name: setup python dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: run static analysis
run: |
make lint
- name: run unit testing
run: |
# Flush the variable to don't spoil job summary with tests,
# which are expected to fail.
GITHUB_STEP_SUMMARY= make test_unittest
- name: run integration testing
run: |
make test_integration
- name: code coverage
if: ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.10' }}
run: |
pip install coveralls==3.*
make coverage
- name: upload coverage data to coveralls.io
if: ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.10' }}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}