add testing steps to workflow action in logs.

Help the next person running into this issue again.
This commit is contained in:
Benjamin Auquite 2023-03-26 15:14:47 -05:00
commit b4bdbb7659

View file

@ -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