add requirements.txt; update ci

This commit is contained in:
Mike Kinney
2021-12-01 10:17:39 -08:00
parent c824ddae1a
commit e7e094a14c
3 changed files with 62 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
name: Run Python Tests
name: Linting and Tests
on:
push:
branches:
@@ -19,7 +19,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest
pip install -r requirements.txt
pip install .
- name: Run pylint
run: pylint --exit-zero meshtastic
- name: Run tests with pytest

View File

@@ -161,6 +161,12 @@ apt install pandoc
sudo pip3 install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest
```
For development, you will probably want to run:
```
pip3 install -r requirements.txt
```
To lint, run:
```
pylint meshtastic

53
requirements.txt Normal file
View File

@@ -0,0 +1,53 @@
astroid==2.9.0
attrs==21.2.0
autopep8==1.6.0
bleach==4.1.0
certifi==2021.10.8
charset-normalizer==2.0.8
colorama==0.4.4
docutils==0.18.1
dotmap==1.3.25
enum-compat==0.0.3
idna==3.3
importlib-metadata==4.8.2
iniconfig==1.1.1
isort==5.10.1
keyring==23.4.0
lazy-object-proxy==1.6.0
Mako==1.1.6
Markdown==3.3.6
MarkupSafe==2.0.1
mccabe==0.6.1
packaging==21.3
pdoc3==0.10.0
pexpect==4.8.0
pkginfo==1.8.1
platformdirs==2.4.0
pluggy==1.0.0
protobuf==3.19.1
ptyprocess==0.7.0
py==1.11.0
pycodestyle==2.8.0
pygatt==4.0.5
Pygments==2.10.0
pylint==2.12.1
pyparsing==3.0.6
Pypubsub==4.0.3
PyQRCode==1.2.1
pyserial==3.5
pytest==6.2.5
readme-renderer==30.0
requests==2.26.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
six==1.16.0
tabulate==0.8.9
timeago==1.0.15
toml==0.10.2
tqdm==4.62.3
twine==3.7.0
typing_extensions==4.0.1
urllib3==1.26.7
webencodings==0.5.1
wrapt==1.13.3
zipp==3.6.0