-
Notifications
You must be signed in to change notification settings - Fork 46
49 lines (40 loc) · 1.36 KB
/
reusable_testing.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
name: reusable_testing
on:
workflow_call:
inputs:
artifact_name:
description: The name of the tarantool build artifact
default: ubuntu-focal
required: false
type: string
jobs:
run_tests:
runs-on: ubuntu-24.04
steps:
- name: Clone the tarantool-python connector
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/tarantool-python
- name: Download the tarantool build artifact
uses: actions/[email protected]
with:
name: ${{ inputs.artifact_name }}
- name: Install tarantool
# Now we're lucky: all dependencies are already installed. Check package
# dependencies when migrating to other OS version.
run: sudo dpkg -i tarantool*.deb
- name: Setup python3 for tests
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install connector requirements
run: pip3 install -r requirements.txt
- name: Install test requirements
run: pip3 install -r requirements-test.txt
- name: Install the crud module for testing purposes
run: |
curl -L https://tarantool.io/release/2/installer.sh | bash
sudo apt install -y tt
pip3 install cmake==3.15.3
tt rocks install crud
- run: make test