Skip to content

add state_class=MEASUREMENT for "Wind bearing" sensor #34

add state_class=MEASUREMENT for "Wind bearing" sensor

add state_class=MEASUREMENT for "Wind bearing" sensor #34

Workflow file for this run

name: CI tests
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
tests:
name: Run ${{ matrix.type }} tests for python ${{matrix.python}}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.12]
type: [unit]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Prepare python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Run ${{ matrix.type }} tests
run: pytest tests/${{ matrix.type }}