mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-15 00:04:05 +02:00
* Test for multiple Home Assistant versions
* Install ulid-transform
* remove unnecessary unsafe `async_set` from test
* Skip test_state_change_handlers in <2023.4
* Revert "Skip test_state_change_handlers in <2023.4"
This reverts commit 8d01b6ec4e.
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
name: 'Install Dependencies'
|
|
description: 'Install Home Assistant and test dependencies'
|
|
inputs:
|
|
python-version:
|
|
description: 'Python version'
|
|
required: true
|
|
default: '3.10'
|
|
core-version:
|
|
description: 'Home Assistant core version'
|
|
required: false
|
|
default: 'dev'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Check out code from GitHub
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: ${{ github.repository }}
|
|
ref: ${{ github.ref }}
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- name: Check out code from GitHub
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: home-assistant/core
|
|
path: core
|
|
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 }}
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
echo "::warning::### WARNING! Deprecation warnings muted with option '--use-pep517' please address this at some point in pytest.yaml. ###"
|
|
pip install -r core/requirements.txt --use-pep517
|
|
pip install -r core/requirements_test.txt --use-pep517
|
|
pip install -e core/ --use-pep517
|
|
pip install ulid-transform # this is in Adaptive-lighting's manifest.json
|
|
pip install $(python test_dependencies.py) --use-pep517
|