From 87a04def5275044b73284a93e7b9ea429553a23b Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Fri, 25 Oct 2024 16:40:15 +0300 Subject: [PATCH] CI: Add testing against HA 2024.5-2024.10 --- .github/workflows/ci.yml | 12 ++++++++- pyproject.toml | 56 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bccfbb95..ae857ed6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,9 +41,19 @@ jobs: python-version: '3.11' - tox-env: 2024_4 python-version: '3.12' - - tox-env: 2024_5 python-version: '3.12' + - tox-env: 2024_6 + python-version: '3.12' + - tox-env: 2024_7 + python-version: '3.12' + - tox-env: 2024_8 + python-version: '3.12' + - tox-env: 2024_9 + python-version: '3.12' + + - tox-env: 2024_10 + python-version: '3.12' latest: true steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 55550537..f3e0c2ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,7 @@ known_first_party = [ [tool.pytest.ini_options] asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" [tool.coverage.report] exclude_also = [ @@ -64,6 +65,11 @@ env_list = [ "2024_2", "2024_4", "2024_5", + "2024_6", + "2024_7", + "2024_8", + "2024_9", + "2024_10", ] skipsdist = true @@ -146,3 +152,53 @@ deps = [ "mutagen==1.47.0", "ha-ffmpeg==3.2.0", ] + +[tool.tox.env.2024_6] +deps = [ + "pytest-homeassistant-custom-component==0.13.132", + "home_assistant_intents==2024.4.24", + "hassil==1.7.0", + "mutagen==1.47.0", + "ha-ffmpeg==3.2.0", +] + +[tool.tox.env.2024_7] +deps = [ + "pytest-homeassistant-custom-component==0.13.144", + "home_assistant_intents==2024.4.24", + "hassil==1.7.0", + "mutagen==1.47.0", + "ha-ffmpeg==3.2.0", +] + +[tool.tox.env.2024_8] +deps = [ + "pytest-homeassistant-custom-component==0.13.152", + "home_assistant_intents==2024.4.24", + "hassil==1.7.0", + "mutagen==1.47.0", + "ha-ffmpeg==3.2.0", + "pymicro-vad==1.0.2", +] + +[tool.tox.env.2024_9] +deps = [ + "pytest-homeassistant-custom-component==0.13.161", + "home_assistant_intents==2024.4.24", + "hassil==1.7.0", + "mutagen==1.47.0", + "ha-ffmpeg==3.2.0", + "pymicro-vad==1.0.2", + "pyspeex_noise==1.0.2", +] + +[tool.tox.env.2024_10] +deps = [ + "pytest-homeassistant-custom-component==0.13.171", + "home_assistant_intents==2024.4.24", + "hassil==1.7.0", + "mutagen==1.47.0", + "ha-ffmpeg==3.2.0", + "pymicro-vad==1.0.2", + "pyspeex_noise==1.0.2", +]