Python sdk fixes (#43) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RunChecks | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y install python3-apt openjdk-11-jre-headless | |
python -m pip install --upgrade pip | |
pip install -r gateway/requirements.txt | |
pip install pylint | |
- name: Analysing python api with pylint | |
run: | | |
cd gateway | |
find . -type f -name \*.py -print | egrep -v '(proto|silabs)'| xargs pylint -dC0103,E1101,E0401,E1136,W0703,R0801,R0902,R0903,R0913,R0912,R0914 | |
- name: Attempting python install | |
run: | | |
cd python-sdk | |
pip install . | |
echo 'import tiedie' | python | |
- name: Java test | |
run: | | |
cd java-sdk/sdk | |
./gradlew test |