mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-16 16:54:04 +02:00
add testing steps to workflow action in logs.
Help the next person running into this issue again.
This commit is contained in:
parent
5255360c16
commit
b4bdbb7659
1 changed files with 10 additions and 0 deletions
10
.github/workflows/pytest.yaml
vendored
10
.github/workflows/pytest.yaml
vendored
|
|
@ -26,8 +26,18 @@ jobs:
|
|||
uses: actions/setup-python@v4.1.0
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Quick Troubleshooting steps if tests break
|
||||
run: |
|
||||
echo "::notice::\n\n\n### If tests fail, try these debug steps: ###\n"
|
||||
echo "::notice::### 1. Replace '-qq' from .github/workflow/pytest.yaml. with '-v' for extra verbosity. ###"
|
||||
echo "::notice::### 2. Push 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! The issue should be easily solvable by reading the verbose logs now. ###\n\n\n"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
echo "::warning::\n\n ### WARNING! Deprecation warnings muted with option --use-pep517 please address at some point. ###\n\n"
|
||||
pip install -r core/requirements.txt --use-pep517
|
||||
pip install -r core/requirements_test.txt --use-pep517
|
||||
pip install -e core/ --use-pep517
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue