Skip to content

Fix consumption update for live sensor of second zaehlpunkt #361

Fix consumption update for live sensor of second zaehlpunkt

Fix consumption update for live sensor of second zaehlpunkt #361

Workflow file for this run

name: Tests
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies (if changed)
run: pip install -r tests/requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 custom_components/wnsm --count --select=E9,F63,F7,F82 --show-source --statistics --config tests/setup.cfg
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 custom_components/wnsm --count --exit-zero --max-complexity=10 --statistics --config tests/setup.cfg
- name: Test with pytest
run: |
pytest --cov=wnsm tests --cov-report html --cov-report xml --cov-report term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
files: coverage.xml