File tree Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Expand file tree Collapse file tree 2 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 13
13
- name : Setup Python
14
14
uses : actions/setup-python@v1
15
15
with :
16
- python-version : 3.8
16
+ python-version : " 3.10 "
17
17
- name : Install Build Tools
18
18
run : |
19
19
python -m pip install build wheel
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments