mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Fix test_proactive_adaptation_with_separate_commands (#970)
* Add link script * Set run_immediately=False * Add await hass.async_block_till_done() * Use scripts/link * Rename scripts * Links in devcontainer * Install from setup script
This commit is contained in:
parent
47cbda5c5e
commit
d23f6ec63a
10 changed files with 29 additions and 46 deletions
|
|
@ -34,4 +34,5 @@ runs:
|
|||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
./scripts/install_ha
|
||||
./scripts/setup-dependencies
|
||||
./scripts/setup-symlinks
|
||||
|
|
|
|||
24
.github/workflows/pytest.yaml
vendored
24
.github/workflows/pytest.yaml
vendored
|
|
@ -62,30 +62,6 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
core-version: ${{ matrix.core-version }}
|
||||
|
||||
- name: Click here for troubleshooting steps if tests break again.
|
||||
run: |
|
||||
echo "::notice::### If tests fail, try these debug steps: ###"
|
||||
echo "::notice::### 1. Replace '-qq' from .github/workflow/pytest.yaml. with '-v' for extra verbosity. ###"
|
||||
echo "::notice::### 2. Push or run action again. ###"
|
||||
echo "::notice::### 3. Check for any log messages in github actions resembling the following using CTRL+F ###
|
||||
echo "::notice::### 4. ERROR:homeassistant.setup:Setup failed for 'component': Unable to import component: No module named ''module'' ###"
|
||||
echo "::notice::### 5. add 'component'.'module' (without the '') from the above log into the 'required' list inside of 'test_dependencies.py' ###"
|
||||
echo "::notice::### 6. Try again! If more issues persist they should be easily solvable by reading the verbose logs now. ###"
|
||||
|
||||
- name: Link custom_components/adaptive_lighting
|
||||
run: |
|
||||
cd core
|
||||
|
||||
# Link homeassitant.components.adaptive_lighting
|
||||
cd homeassistant/components
|
||||
ln -fs ../../../custom_components/adaptive_lighting adaptive_lighting
|
||||
cd -
|
||||
|
||||
# Link adaptive_lighting tests
|
||||
cd tests/components/
|
||||
ln -fs ../../../tests adaptive_lighting
|
||||
cd -
|
||||
|
||||
- name: Run pytest
|
||||
timeout-minutes: 60
|
||||
run: |
|
||||
|
|
|
|||
5
.github/workflows/update-readme.yml
vendored
5
.github/workflows/update-readme.yml
vendored
|
|
@ -26,11 +26,6 @@ jobs:
|
|||
run: |
|
||||
pip install markdown-code-runner==1.0.0 pandas tabulate
|
||||
|
||||
- name: Link custom_components/adaptive_lighting
|
||||
run: |
|
||||
cd core/homeassistant/components
|
||||
ln -fs ../../../custom_components/adaptive_lighting adaptive_lighting
|
||||
|
||||
- name: Run markdown-code-runner
|
||||
run: markdown-code-runner --debug README.md
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue