From e8446fb2325ee6f73652ce712e11069efd63eb38 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 28 Aug 2022 14:01:10 -0700 Subject: [PATCH] Use symlinks --- .github/workflows/ci.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2b317092..33dc1d6d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 \