Skip to content

Merge pull request #238 from renaudallard/main #491

Merge pull request #238 from renaudallard/main

Merge pull request #238 from renaudallard/main #491

name: Config flow tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
config-flow:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Home Assistant test deps
run: |
python -m pip install --upgrade pip
# Install latest HA and test stack first
python -m pip install homeassistant pytest pytest-asyncio pytest-homeassistant-custom-component paho-mqtt
# Force compatible pycares/aiodns combo AFTER HA install to override any incompatible versions
python -m pip uninstall -y pycares aiodns || true
python -m pip install --no-binary=pycares "pycares==4.4.0" "aiodns==3.2.0"
- name: Run mocked config/setup tests
env:
PYTHONPATH: "."
run: pytest -q tests/test_config_flow.py