Skip to content

Merge pull request #8 from daxingplay/v1.2.0 #148

Merge pull request #8 from daxingplay/v1.2.0

Merge pull request #8 from daxingplay/v1.2.0 #148

Workflow file for this run

name: Push actions
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
validate:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v4"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
style:
runs-on: "ubuntu-latest"
name: Check style formatting
steps:
- uses: "actions/checkout@v4"
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: python3 -m pip install black
- run: black .
tests:
runs-on: "ubuntu-latest"
name: Run tests
strategy:
matrix:
python-version: [3.9, "3.10", 3.11]
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v4"
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
- name: Run tests
run: |
pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
--cov custom_components.vaillant_plus \
-o console_output_style=count \
-p no:sugar \
tests
coverage lcov
- name: Upload Coverage Results
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov