mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-14 15:54:04 +02:00
commit1edaf1d7edMerge:0e7e06ea888afdAuthor: Benjamin Auquite <halomastar@gmail.com> Date: Mon Apr 10 12:57:30 2023 -0500 Merge branch 'main' into unconventional_sunrise_sunset_times commit0e7e06e8a4Merge:8fa554afe7bdd3Author: Benjamin Auquite <halomastar@gmail.com> Date: Sat Apr 8 20:23:20 2023 -0500 Merge branch 'main' into unconventional_sunrise_sunset_times commit8fa554a4e7Merge:ec64eda39e9d0eAuthor: Benjamin Auquite <halomastar@gmail.com> Date: Sat Apr 8 00:50:16 2023 -0500 merge commitec64eda6bfMerge:8353db5744e43fAuthor: Benjamin Auquite <halomastar@gmail.com> Date: Tue Apr 4 21:08:54 2023 -0500 Merge branch 'main' into unconventional_sunrise_sunset_times commit8353db54ccAuthor: Benjamin Auquite <halomastar@gmail.com> Date: Tue Apr 4 00:56:24 2023 -0500 tests are unfinished commit6cb24116c0Author: Benjamin Auquite <halomastar@gmail.com> Date: Mon Apr 3 21:17:01 2023 -0500 Update switch.py
43 lines
1.5 KiB
YAML
43 lines
1.5 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 '\workflows\install_dependencies\action.yml'. ###"
|
|
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
|
|
pip install jaraco --use-pep517
|