Skip to content

Commit fcd00ed

Browse files
avahuang0429Ava Huang
authored andcommitted
Create workflow for unit testing
1 parent 1a401f8 commit fcd00ed

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: UnitTestCoverage
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
20+
os: [ubuntu-latest, macOS-latest, windows-latest ]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install pytest
32+
pip install -r requirements.txt
33+
- name: Test with pytest
34+
run: |
35+
pytest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Amazon Kinesis Client Library for Python
22

3+
[![Version](https://img.shields.io/pypi/v/amazon-kclpy.svg?style=flat)](https://pypi.org/project/amazon-kclpy/) [![UnitTestCoverage](https://github.com/awslabs/amazon-kinesis-client-python/actions/workflows/run-unit-tests.yml/badge.svg)](https://github.com/awslabs/amazon-kinesis-client-python/actions/workflows/run-unit-tests.yml)
4+
35
This package provides an interface to the Amazon Kinesis Client Library (KCL) MultiLangDaemon,
46
which is part of the [Amazon KCL for Java][kinesis-github].
57
Developers can use the [Amazon KCL][amazon-kcl] to build distributed applications that

0 commit comments

Comments
 (0)