Skip to content

Commit 2bffa70

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 2bffa70

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
ref: ylobankov/add-reusable-testing-workflow
21+
22+
- name: Download the tarantool build artifact
23+
uses: actions/download-artifact@v2
24+
with:
25+
name: ${{ inputs.artifact_name }}
26+
27+
- name: Install tarantool
28+
# Now we're lucky: all dependencies are already installed. Check package
29+
# dependencies when migrating to other OS version.
30+
run: sudo dpkg -i tarantool*.deb
31+
32+
- name: Install connector dependencies
33+
run: pip install -r requirements.txt
34+
35+
- run: make deps
36+
- 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)