Test for multiple Home Assistant versions

This commit is contained in:
Bas Nijholt 2023-04-06 12:57:18 -07:00
commit 9a7492fc58
3 changed files with 12 additions and 5 deletions

View file

@ -1,10 +1,14 @@
name: 'Install Dependencies'
description: 'Install Home Assistant and test dependencies'
inputs:
python_version:
python-version:
description: 'Python version'
required: true
default: '3.10'
core-version:
description: 'Home Assistant core version'
required: false
default: 'dev'
runs:
using: "composite"
@ -21,11 +25,12 @@ runs:
with:
repository: home-assistant/core
path: core
- name: Set up Python ${{ inputs.python_version }}
ref: ${{ inputs.core-version }}
- name: Set up Python ${{ inputs.python-version }}
id: python
uses: actions/setup-python@v4.1.0
with:
python-version: ${{ inputs.python_version }}
python-version: ${{ inputs.python-version }}
- name: Install dependencies
shell: bash
run: |

View file

@ -13,6 +13,7 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
core-version: ["2023.2.5", "2023.3.6", "2023.4.0", "dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3
@ -20,7 +21,8 @@ jobs:
- name: Install Home Assistant
uses: ./.github/workflows/install_dependencies
with:
python_version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
core-version: ${{ matrix.core-version }}
- name: Click here for troubleshooting steps if tests break again.
run: |

View file

@ -20,7 +20,7 @@ jobs:
- name: Install Home Assistant
uses: ./.github/workflows/install_dependencies
with:
python_version: "3.10"
python-version: "3.10"
- name: Install markdown-code-runner and README code dependencies
run: |