Skip to content

Commit 6140342

Browse files
ylobankovTotktonada
authored andcommitted
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 6140342

File tree

3 files changed

+47
-7
lines changed

3 files changed

+47
-7
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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: Setup python3 for tests
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: 3.7
35+
36+
- name: Install connector requirements
37+
run: pip install -r requirements.txt
38+
39+
- name: Install test requirements
40+
run: pip install -r requirements-test.txt
41+
42+
- run: make test

appveyor.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ environment:
44
- PYTHON: "C:\\Python27-x64"
55
- PYTHON: "C:\\Python34"
66
- PYTHON: "C:\\Python34-x64"
7-
# Workaround the build problem [1] by choosing a PyYAML
8-
# version for which PyPI provides a wheel for this platform
9-
# and Python version / build.
10-
#
11-
# [1]: http://help.appveyor.com/discussions/problems/28023
12-
PYYAML: "==5.2b1"
137
- PYTHON: "C:\\Python35"
148
- PYTHON: "C:\\Python35-x64"
159
- PYTHON: "C:\\Python36"
@@ -23,7 +17,7 @@ install:
2317
# install runtime dependencies
2418
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
2519
# install testing dependencies
26-
- "%PYTHON%\\python.exe -m pip install pyyaml%PYYAML% dbapi-compliance==1.15.0"
20+
- "%PYTHON%\\python.exe -m pip install -r requirements-test.txt"
2721

2822
build: off
2923

requirements-test.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dbapi-compliance==1.15.0
2+
# Use this pyyaml version to be compatible with Python34-x64 on Windows.
3+
# See for more details http://help.appveyor.com/discussions/problems/28023.
4+
pyyaml==5.2b1

0 commit comments

Comments
 (0)