Skip to content

fix: compatibility testsuite with HA 2024.5 #3988

fix: compatibility testsuite with HA 2024.5

fix: compatibility testsuite with HA 2024.5 #3988

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
paths:
- '**.py'
pull_request:
paths:
- '**.py'
- 'poetry.lock'
jobs:
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: ./.github/workflows/poetry-composite-action
- name: Prepare test env
run: bash tests/setup.sh
- name: Run tests
run: |
poetry run pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
--cov custom_components.powercalc \
--cov-report xml \
-o console_output_style=count \
-p no:sugar \
tests
poetry run coverage lcov
- name: Upload Coverage Results
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov