Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 36958e4

Browse files
committed
add github action for running tests
1 parent c40504b commit 36958e4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/run_test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Unit test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint-python:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2.2.0
11+
- name: Setup Python
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 2.7
15+
- name: Install Pytest and mock
16+
run: |
17+
python2 -m pip install pytest mock
18+
- name: Run pytest
19+
run: |
20+
python2 -m pytest -v tests
21+

0 commit comments

Comments
 (0)