33 lines
628 B
YAML
33 lines
628 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.14"
|
|
cache: pip
|
|
cache-dependency-path: requirements_test.txt
|
|
|
|
- name: Install test dependencies
|
|
run: python -m pip install --requirement requirements_test.txt
|
|
|
|
- name: Ruff
|
|
run: ruff check custom_components tests
|
|
|
|
- name: Pytest
|
|
run: python -m pytest -q
|