From e53fe421e8d66edd2f61f0835ed7fa4814b27301 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 1 Dec 2021 09:34:10 -0800 Subject: [PATCH 1/5] ignore vi swap files --- .gitignore | 1 + meshtastic/test/.test_node.py.swp | Bin 12288 -> 0 bytes 2 files changed, 1 insertion(+) delete mode 100644 meshtastic/test/.test_node.py.swp diff --git a/.gitignore b/.gitignore index 5f5eeb9..f414903 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ dist log_* .eggs nanopb-0.4.4 +.*swp diff --git a/meshtastic/test/.test_node.py.swp b/meshtastic/test/.test_node.py.swp deleted file mode 100644 index 1df257b1a9ba65e9dd488144ded33089ee9c5e5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI&yGjE=6b9g z@C^iOAHzrRY|JKJh>D%$A2_@0%+Ac2ugm6C-TlpNvFenG+ceRfb0aUdUdAu(i2}c= zntm9nb~-q?nG>a~(~3OV8vGKEob?whHDpi<-WIQHE7P#jSl=tgZQF>#Qqb!uS!HbJ zQVFA)a^fFy`8ELzLSR@05?e2>PS8qu*-Z%+a`R$#W^Y(EaBc`d00Izz00bZa0SFAG zfQ?7!oKHU5Jw1N{=(Lef_wFNZ5P$##AOHafKmY;|fB*y_009X6LjhSM8k;0K;zcC7Zp$(>Y+*7x_B>1{~SSX0~b&)s9)5_-Q$9cUO zHC2~M>o-%}Y?CBZp{LuiRkeXT<@0X|eR(&R%k6Sa`upQ>7jYUQtyQnQKW1T#Hn^mn zyPZJlrjvxeC93Nv5d9K&CoOCjeh^0=k%+Rs&I&=a TvU-v3+sV!do+-MO^l93!j~vC= From a811a9dee647d6b2ac32f2320b8165ee9e4d66a3 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 1 Dec 2021 09:36:46 -0800 Subject: [PATCH 2/5] add pytest to github action --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..82e61f8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +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 tests with pytest + run: pytest From b2708947517f65dc9bf8a181b82ec02d82837506 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 1 Dec 2021 09:40:50 -0800 Subject: [PATCH 3/5] try to add badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3eee433..f42f9a5 100644 --- a/README.md +++ b/README.md @@ -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/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. From c0a834b0156ecfdbacca3354454d04a2b0f4798b Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 1 Dec 2021 09:42:24 -0800 Subject: [PATCH 4/5] update badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f42f9a5..17a2f3f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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/badge.svg) +![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. From 5deca40925c34dd4915b504d47cac89c9cef6182 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 1 Dec 2021 09:51:51 -0800 Subject: [PATCH 5/5] add pylint but do not stop on issues --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82e61f8..0860cba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,7 @@ jobs: 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