mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Use symlinks
This commit is contained in:
parent
7808d1036c
commit
e8446fb232
1 changed files with 11 additions and 3 deletions
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
|
@ -37,14 +37,22 @@ jobs:
|
|||
- name: Run pytest
|
||||
timeout-minutes: 60
|
||||
run: |
|
||||
cp -r custom_components/adaptive_lighting core/homeassistant/components/adaptive_lighting
|
||||
cp -r tests/ core/tests/components/adaptive_lighting
|
||||
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 -
|
||||
|
||||
python3 -X dev -m pytest \
|
||||
-qq \
|
||||
--timeout=9 \
|
||||
--durations=10 \
|
||||
--dist=loadfile \
|
||||
--cov="homeassistant" \
|
||||
--cov-report=xml \
|
||||
-o console_output_style=count \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue