Skip to content

fix: maintenance fix for HA 2024.5.0b0 (#362) #932

fix: maintenance fix for HA 2024.5.0b0 (#362)

fix: maintenance fix for HA 2024.5.0b0 (#362) #932

Workflow file for this run

name: Pytest
on:
push:
pull_request:
schedule:
- cron: "0 7 1-28/7 * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libudev-dev
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Run formatting
run: |
python -m isort -v --profile black .
python -m black -v .
- name: Generate coverage report
run: |
python -m pytest
pip install pytest-cov
pytest ./tests/ --cov=custom_components/keymaster/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4