File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Test Open XC Pyton
5+
6+ on : [ pull_request ]
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [3.6.7]
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up Python ${{ matrix.python-version }}
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+ - name : Install dependencies
23+ run : |
24+ sudo apt-get install python-bluetooth -qq -y
25+ python -m pip install --upgrade pip
26+ python -m pip install pytest pyserial==3.1.1 coveralls
27+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
29+ - name : Test
30+ run : |
31+ python setup.py test
32+
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ OpenXC for Python
1111:Source: http://github.com/openxc/openxc-python/
1212:Keywords: vehicle, openxc, python
1313
14- .. image :: https://travis-ci.org /openxc/openxc-python.svg?branch=master
15- :target: https://travis-ci.org /openxc/openxc-python
14+ .. image :: https://github.com /openxc/openxc-python/workflows/Test%20Open%20XC%20Pyton/badge .svg
15+ :target: https://github.com /openxc/openxc-python/actions?query=workflow%3A%22Test+Open+XC+Pyton%22
1616
1717.. image :: https://coveralls.io/repos/openxc/openxc-python/badge.png?branch=master
1818 :target: https://coveralls.io/r/openxc/openxc-python?branch=master
You can’t perform that action at this time.
0 commit comments