Skip to content

Commit 9942e5d

Browse files
committed
Added pytest into the workflow
1 parent 88850bb commit 9942e5d

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Receptor Perf Testing",
3-
"description": "Performance testing of Receptor.",
2+
"name": "Receptor Testing",
3+
"description": "Unit + Perf tests for Receptor.",
44
"iconName": "python",
55
"categories": ["Python"]
66
}

.github/workflows/tester.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Receptor Perf Testing
1+
name: Receptor Testing
22

33
on: [push, pull_request]
44

55
jobs:
66
build:
7-
7+
name: Performance Tests
88
runs-on: ubuntu-latest
99

1010
steps:
@@ -39,4 +39,22 @@ jobs:
3939
sleep 10
4040
python ./test/perf/node_utils.py ping ./test/perf/topology-tree.yaml --count 100 --validate 0.1
4141
kill `pidof python`
42-
rm -Rf /tmp/receptor
42+
rm -Rf /tmp/receptor
43+
unit:
44+
name: Unit Tests
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- uses: actions/checkout@v1
49+
- name: Set up Python 3.7
50+
uses: actions/setup-python@v1
51+
with:
52+
python-version: 3.7
53+
- name: Install dependencies
54+
run: |
55+
python -m pip install --upgrade pip
56+
pip install python-dateutil pytest pytest-asyncio
57+
pip install .
58+
- name: pytest unit tests
59+
run: |
60+
pytest

0 commit comments

Comments
 (0)