mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 20:34:20 +02:00
Test HA core v2023.6 until v2024.2 (#942)
* Test HA core v2023.6 until v2024.2
* Use Python 3.12
* Add components.ffmpeg
* Revert "VS Code Dev Container (dev & test environment) (#605)"
This reverts commit 6283158ff7.
* Fix
* revert
* fi
* simplify
* Fix
* fixes
* fix
* rev
* Rename test
* fix
* fix all
* fix
* revert
This commit is contained in:
parent
e4e1aa7d37
commit
9eae1501d3
10 changed files with 104 additions and 101 deletions
|
|
@ -27,7 +27,8 @@ RUN pip3 install -r /core/requirements.txt --use-pep517 && \
|
|||
COPY . /app/
|
||||
|
||||
# Setup symlinks in core
|
||||
RUN ln -s /app/tests /core/tests/components/adaptive_lighting && \
|
||||
RUN ln -s /app/custom_components/adaptive_lighting /core/homeassistant/components/adaptive_lighting && \
|
||||
ln -s /app/tests /core/tests/components/adaptive_lighting && \
|
||||
# For test_dependencies.py
|
||||
ln -s /core /app/core
|
||||
|
||||
|
|
@ -38,8 +39,6 @@ WORKDIR /core
|
|||
|
||||
# Make 'custom_components/adaptive_lighting' imports available to tests
|
||||
ENV PYTHONPATH="${PYTHONPATH}:/app"
|
||||
# Enable testing against HA clone (instead of pytest_homeassistant_custom_component)
|
||||
ENV HA_CLONE=true
|
||||
|
||||
ENTRYPOINT ["python3", \
|
||||
# Enable Python development mode
|
||||
|
|
@ -53,7 +52,7 @@ ENTRYPOINT ["python3", \
|
|||
# Print the 10 slowest tests
|
||||
"--durations=10", \
|
||||
# Measure code coverage for the 'homeassistant' package
|
||||
"--cov=custom_components.adaptive_lighting", \
|
||||
"--cov='homeassistant'", \
|
||||
# Generate an XML report of the code coverage
|
||||
"--cov-report=xml", \
|
||||
# Generate an HTML report of the code coverage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue