diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 66495b48..f4a14c75 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -26,18 +26,18 @@ jobs: uses: actions/setup-python@v4.1.0 with: python-version: ${{ matrix.python-version }} - - name: Quick Troubleshooting steps if tests break + - name: Click here for troubleshooting steps if tests break again. run: | - echo "::notice::\n\n\n### If tests fail, try these debug steps: ###\n" + echo "::notice::### If tests fail, try these debug steps: ###" echo "::notice::### 1. Replace '-qq' from .github/workflow/pytest.yaml. with '-v' for extra verbosity. ###" - echo "::notice::### 2. Push again ###" + echo "::notice::### 2. Push or run action 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" + echo "::notice::### 6. Try again! If more issues persist they should be easily solvable by reading the verbose logs now. ###" - name: Install dependencies run: | - echo "::warning::\n\n ### WARNING! Deprecation warnings muted with option --use-pep517 please address at some point. ###\n\n" + echo "::warning::### WARNING! Deprecation warnings muted with option '--use-pep517' please address this at some point in pytest.yaml. ###" pip install -r core/requirements.txt --use-pep517 pip install -r core/requirements_test.txt --use-pep517 pip install -e core/ --use-pep517