mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 06:14:04 +02:00
41 lines
1.1 KiB
YAML
41 lines
1.1 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@v4
|
|
with:
|
|
repository: ${{ github.repository }}
|
|
ref: ${{ github.ref }}
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- name: Check out code from GitHub
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: home-assistant/core
|
|
path: core
|
|
ref: ${{ inputs.core-version }}
|
|
- name: Set up Python ${{ inputs.python-version }}
|
|
id: python
|
|
uses: actions/setup-python@v5.3.0
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
- name: Set up UV
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
uv venv --python ${{ inputs.python-version }}
|
|
./scripts/setup-dependencies
|
|
./scripts/setup-symlinks
|