From 19963648039213e0ef77a7748f741e3d2d36d1c5 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Wed, 7 Sep 2022 20:42:59 -0700 Subject: [PATCH 1/2] Run CI with Python 3.9 and 3.10 These two version of Python are what is currently supported by Home Assistant, so the CI should run on them. --- .github/workflows/pull.yml | 7 ++++++- .github/workflows/push.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 77d62fc..ba93b2b 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -33,13 +33,18 @@ jobs: tests: runs-on: "ubuntu-latest" name: Run tests + strategy: + matrix: + python-version: + - "3.9" + - "3.10" steps: - name: Check out code from GitHub uses: "actions/checkout@v2" - name: Setup Python uses: "actions/setup-python@v1" with: - python-version: "3.8" + python-version: ${{ matrix.python-version }} - name: Install requirements run: python3 -m pip install -r requirements_test.txt - name: Run tests diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a54c506..f5ebcdf 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -36,13 +36,18 @@ jobs: tests: runs-on: "ubuntu-latest" name: Run tests + strategy: + matrix: + python-version: + - "3.9" + - "3.10" steps: - name: Check out code from GitHub uses: "actions/checkout@v2" - name: Setup Python uses: "actions/setup-python@v1" with: - python-version: "3.8" + python-version: ${{ matrix.python-version }} - name: Install requirements run: python3 -m pip install -r requirements_test.txt - name: Run tests From 8bb4c9e686e6e51bf6b6939ab8c517ac0a72a039 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Wed, 7 Sep 2022 20:51:23 -0700 Subject: [PATCH 2/2] Bump `pytest-homeassistant-custom-component` to `0.11.16` --- requirements_test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_test.txt b/requirements_test.txt index 1527a7f..6b8b7c6 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,2 +1,2 @@ -pytest-homeassistant-custom-component==0.4.0 +pytest-homeassistant-custom-component==0.11.16 luxor-openapi-asyncio==0.1.0