Skip to content

Fixes #960: Check for populated 'speaker_info' property before use in 'has_subwoofer' #606

Fixes #960: Check for populated 'speaker_info' property before use in 'has_subwoofer'

Fixes #960: Check for populated 'speaker_info' property before use in 'has_subwoofer' #606

---
name: SoCo
on:
push:
branches:
- master
- 'v0.30.fixes'
pull_request:
branches:
- master
- 'v0.30.fixes'
jobs:
SoCo-Check-Jobs:
name: SoCo Check Jobs (${{ matrix.python-version }})
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install graphviz libxml2-dev libxslt-dev python3-dev
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint with flake8 and pylint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 soco
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pylint soco
- name: Test with pytest
run: |
pytest --cov-config .coveragerc --cov soco .
- name: Test formatting with Black
if: matrix.python-version >= 3.8
run: |
black --check soco tests
- name: Test documentation build
if: matrix.python-version == 3.11
run: |
make docs