mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-15 16:24:04 +02:00
* Autogenerate the documentation and strings * Line limit * Split * Happy pre-commit * Split up workflows * Generate table function * raise * Add gen script * chore(docs): update TOC * Add gen script * path * Run - name: Install Home Assistant * chore(docs): update TOC * add copyright * Fix branch name * Run on PRs * dev * remove steps * use matrix * Run script * chore(docs): update TOC * Try fixing CI * fix * test * refactor * chore(docs): update TOC * fix * update * use v3 * rename * Fix input * fix pytest * fix path * paths * Change to github.head_ref * More backticks * Add extra text * chore(docs): update TOC * backticks * Update README.md --------- Co-authored-by: basnijholt <basnijholt@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: 'Install Dependencies'
|
|
description: 'Install Home Assistant and test dependencies'
|
|
inputs:
|
|
python_version:
|
|
description: 'Python version'
|
|
required: true
|
|
default: '3.10'
|
|
|
|
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
|
|
- 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 $(python test_dependencies.py) --use-pep517
|