Merge pull request #131 from mkinney/add_github_action_for_test

Add GitHub action for test
This commit is contained in:
Jm Casler
2021-12-01 10:01:24 -08:00
committed by GitHub
4 changed files with 29 additions and 0 deletions

26
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Run Python Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest
- name: Run pylint
run: pylint --exit-zero meshtastic
- name: Run tests with pytest
run: pytest

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ dist
log_*
.eggs
nanopb-0.4.4
.*swp

View File

@@ -1,5 +1,7 @@
# Meshtastic-python
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/meshtastic/Meshtastic-python)
![Unit Tests](https://github.com/meshtastic/Meshtastic-python/actions/workflows/ci.yml/badge.svg)
A python client for using [Meshtastic](https://www.meshtastic.org) devices. This small library (and example application) provides an easy API for sending and receiving messages over mesh radios. It also provides access to any of the operations/data available in the device user interface or the Android application. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.

View File

Binary file not shown.