Skip to content

Commit 2f27a95

Browse files
committed
test
1 parent d98b3f7 commit 2f27a95

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

.github/workflows/build_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup Python
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.8
16+
python-version: "3.10"
1717
- name: Install Build Tools
1818
run: |
1919
python -m pip install build wheel

.github/workflows/unit_tests.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Run UnitTests
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
paths-ignore:
7+
- 'hivemind_bus_client/version.py'
8+
- 'examples/**'
9+
- '.github/**'
10+
- '.gitignore'
11+
- 'LICENSE'
12+
- 'CHANGELOG.md'
13+
- 'MANIFEST.in'
14+
- 'readme.md'
15+
- 'scripts/**'
16+
push:
17+
branches:
18+
- master
19+
paths-ignore:
20+
- 'hivemind_bus_client/version.py'
21+
- 'requirements/**'
22+
- 'examples/**'
23+
- '.github/**'
24+
- '.gitignore'
25+
- 'LICENSE'
26+
- 'CHANGELOG.md'
27+
- 'MANIFEST.in'
28+
- 'readme.md'
29+
- 'scripts/**'
30+
workflow_dispatch:
31+
32+
jobs:
33+
unit_tests:
34+
strategy:
35+
matrix:
36+
python-version: [3.9, "3.10", "3.11" ]
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 15
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Set up python ${{ matrix.python-version }}
42+
uses: actions/setup-python@v2
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
- name: Install System Dependencies
46+
run: |
47+
sudo apt-get update
48+
sudo apt install python3-dev swig
49+
python -m pip install build wheel
50+
- name: Install repo
51+
run: |
52+
pip install -e .
53+
- name: Run unittests
54+
run: |
55+
pytest --cov=hivemind_bus_client --cov-report xml test/unittests
56+
- name: Upload coverage
57+
if: "${{ matrix.python-version == '3.9' }}"
58+
env:
59+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
60+
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)