Merge pull request #2892 from bramstroker/fix/options-flow #5494
Workflow file for this run
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: 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 \ | |
--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 |