Skip to content

Fix python 3.7 requirements for bleak, add werkzeug #509

Fix python 3.7 requirements for bleak, add werkzeug

Fix python 3.7 requirements for bleak, add werkzeug #509

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python Application
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
os: [macOS-11, ubuntu-latest, windows-latest]
# macOS-12 (macOS-latest) has issue with Bluetooth Permissions (similar to https://github.com/hbldh/bleak/issues/768)
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update
sudo apt install bluez libbluetooth-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build due to the following stylistic and syntax issues
# syntax errors or undefined names
flake8 ./app --count --select=E9,F63,F7,F82 --show-source --statistics
# trailing whitespace
flake8 ./app --count --select=W291,W293 --show-source --statistics
# missing or extra whitespace
flake8 ./app --count --select=E20,E211,E22,E224,E225,E226,E227,E228,E231,E241,E251,E27 --show-source --statistics
# missing or extra blank lines
flake8 ./app --count --select=W391,E301,E302,E303,E304,E309 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./app --count --exit-zero --exclude="*/__init__.py/*" --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest