From c8f45ae4bc14f8487236dc6c1cd8288577e921dc Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 20 Nov 2023 15:47:39 +0100 Subject: [PATCH] Add more checks --- .github/workflows/python_check.yml | 27 ++++++++++++++++++++++++++- requirements_dev.txt | 11 +++++------ 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python_check.yml b/.github/workflows/python_check.yml index 102943c..89e14d3 100644 --- a/.github/workflows/python_check.yml +++ b/.github/workflows/python_check.yml @@ -13,7 +13,31 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.11"] + include: + - home-assistant: "2023.1.0" + python-version: "3.10" + - home-assistant: "2023.2.0" + python-version: "3.10" + - home-assistant: "2023.3.0" + python-version: "3.10" + - home-assistant: "2023.4.0" + python-version: "3.10" + - home-assistant: "2023.5.0" + python-version: "3.10" + - home-assistant: "2023.6.0" + python-version: "3.10" + - home-assistant: "2023.7.0" + python-version: "3.10" + - home-assistant: "2023.7.0" + python-version: "3.11" + - home-assistant: "2023.8.0" + python-version: "3.11" + - home-assistant: "2023.9.0" + python-version: "3.11" + - home-assistant: "2023.10.0" + python-version: "3.11" + - home-assistant: "2023.11.0" + python-version: "3.11" steps: - uses: actions/checkout@v3 @@ -23,6 +47,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | + python -m pip install homeassistant~=${{ matrix.home-assistant }} python -m pip install --upgrade pip python -m pip install -r requirements.txt python -m pip install -r requirements_dev.txt diff --git a/requirements_dev.txt b/requirements_dev.txt index 9bb8d71..153a20d 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,6 +1,5 @@ -homeassistant>=2023.11.3 -black>=23.11 -flake8>=6.1 -mypy>=1.7 -pylint>=3.0 -setuptools>=68.2 +black>=22.12 +flake8>=6.0 +mypy>=0.991 +pylint>=2.15 +setuptools>=62.3