Skip to content

Commit

Permalink
Merge pull request #158 from openxc/Github-actions-test
Browse files Browse the repository at this point in the history
GitHub actions test
  • Loading branch information
pjt0620 committed Feb 9, 2021
2 parents 41cc1fb + 25f9288 commit b7f8e47
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test Open XC Pyton

on: [ pull_request ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install python-bluetooth -qq -y
python -m pip install --upgrade pip
python -m pip install pytest pyserial==3.1.1 coveralls
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test
run: |
python setup.py test
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ OpenXC for Python
:Source: http://github.com/openxc/openxc-python/
:Keywords: vehicle, openxc, python

.. image:: https://travis-ci.org/openxc/openxc-python.svg?branch=master
:target: https://travis-ci.org/openxc/openxc-python
.. image:: https://github.com/openxc/openxc-python/workflows/Test%20Open%20XC%20Pyton/badge.svg
:target: https://github.com/openxc/openxc-python/actions?query=workflow%3A%22Test+Open+XC+Pyton%22

.. image:: https://coveralls.io/repos/openxc/openxc-python/badge.png?branch=master
:target: https://coveralls.io/r/openxc/openxc-python?branch=master
Expand Down

0 comments on commit b7f8e47

Please sign in to comment.