Skip to content

Commit 335a6b5

Browse files
committed
github-ci: add reusable testing workflow
The idea of this workflow is to be a part of the 'integration.yml' workflow from the tarantool repo to verify the integration of the tarantool-python connector with an arbitrary tarantool version. This workflow is not triggered on a push to the repo and cannot be run manually since it has only the 'workflow_call' trigger. This workflow will be included in the tarantool development cycle and called by the 'integration.yml' workflow from the tarantool project on a push to the master and release branches for verifying integration of tarantool with tarantool-python. Part of tarantool/tarantool#6584 Part of tarantool/tarantool#5265 Part of tarantool/tarantool#6056
1 parent ea942f9 commit 335a6b5

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: reusable_testing
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
artifact_name:
7+
description: The name of the tarantool build artifact
8+
default: ubuntu-focal
9+
required: false
10+
type: string
11+
12+
jobs:
13+
run_tests:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- name: Clone the tarantool-python connector
17+
uses: actions/checkout@v2
18+
with:
19+
repository: ${{ github.repository_owner }}/tarantool-python
20+
21+
- name: Download the tarantool build artifact
22+
uses: actions/download-artifact@v2
23+
with:
24+
name: ${{ inputs.artifact_name }}
25+
26+
- name: Install tarantool
27+
# Now we're lucky: all dependencies are already installed. Check package
28+
# dependencies when migrating to other OS version.
29+
run: sudo dpkg -i tarantool*.deb
30+
31+
- name: Install connector dependencies
32+
run: pip install -r requirements.txt
33+
34+
- run: make deps
35+
- run: make test

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ docs:
1717
python setup.py build_sphinx
1818
docs-upload: docs
1919
python setup.py upload_sphinx
20+
deps:
21+
pip install pyyaml dbapi-compliance==1.15.0

0 commit comments

Comments
 (0)