add state_class=MEASUREMENT for "Wind bearing" sensor #34
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: 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 }} |