Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-ci: add reusable testing workflow #192

Merged
merged 1 commit into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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-20.04
steps:
- name: Clone the tarantool-python connector
uses: actions/checkout@v2
with:
repository: ${{ github.repository_owner }}/tarantool-python

- name: Download the tarantool build artifact
uses: actions/download-artifact@v2
with:
name: ${{ inputs.artifact_name }}

Totktonada marked this conversation as resolved.
Show resolved Hide resolved
- 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@v2
with:
python-version: 3.7

- name: Install connector requirements
run: pip install -r requirements.txt

- name: Install test requirements
run: pip install -r requirements-test.txt

- run: make test
8 changes: 1 addition & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ environment:
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python34-x64"
# Workaround the build problem [1] by choosing a PyYAML
# version for which PyPI provides a wheel for this platform
# and Python version / build.
#
# [1]: http://help.appveyor.com/discussions/problems/28023
PYYAML: "==5.2b1"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
Expand All @@ -23,7 +17,7 @@ install:
# install runtime dependencies
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
# install testing dependencies
- "%PYTHON%\\python.exe -m pip install pyyaml%PYYAML% dbapi-compliance==1.15.0"
- "%PYTHON%\\python.exe -m pip install -r requirements-test.txt"

build: off

Expand Down
4 changes: 4 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dbapi-compliance==1.15.0
# Use this pyyaml version to be compatible with Python34-x64 on Windows.
# See for more details http://help.appveyor.com/discussions/problems/28023.
pyyaml==5.2b1