File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 5151 pip install uv
5252 uv pip install -U pip setuptools wheel
5353 uv pip install -r requirements_test.txt -r requirements_commit.txt
54- # TODO: Remove after update of aiohttp beyond 3.10.0
55- uv pip show aiohttp | grep -q "Version: 3.10.0" && (grep -q "core.locations" venv/lib/python*/site-packages/aiohttp/web_urldispatcher.py && echo " *** aiohttp already patched" || ( echo "Patching aiohttp 3.10.0 for tests"; patch -tRup0 venv/lib/python*/site-packages/aiohttp/web_urldispatcher.py < patch/aiohttp310.patch && echo " *** aiohttp Patched!" || echo " *** aiohttp patch failed?")) || ( echo " ***"; echo " *** WE CAN REMOVE THE PATCH FOR aiohttp 3.10.0 from $0"; echo " ***" )
5654 - name : Restore pre-commit environment from cache
5755 id : cache-precommit
5856 uses : actions/cache@v4
@@ -203,8 +201,6 @@ jobs:
203201 # 20220124 Mimic setup_test.sh
204202 uv pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
205203 uv pip install --upgrade pytest-asyncio
206- # TODO: Remove after update of aiohttp beyond 3.10.0
207- uv pip show aiohttp | grep -q "Version: 3.10.0" && (grep -q "core.locations" venv/lib/python*/site-packages/aiohttp/web_urldispatcher.py && echo " *** aiohttp already patched" || ( echo "Patching aiohttp 3.10.0 for tests"; patch -tRup0 venv/lib/python*/site-packages/aiohttp/web_urldispatcher.py < patch/aiohttp310.patch && echo " *** aiohttp Patched!" || echo " *** aiohttp patch failed?")) || ( echo " ***"; echo " *** WE CAN REMOVE THE PATCH FOR aiohttp 3.10.0 from $0"; echo " ***" )
208204
209205 pytest :
210206 runs-on : ubuntu-latest
@@ -240,16 +236,13 @@ jobs:
240236 run : |
241237 . venv/bin/activate
242238 pytest --log-level info tests/*.py --cov='.'
243- - name : Run all tests
244- run : |
245- echo "+Coverage debug here"
246- ls -alrt
247- echo "/Coverage debug here"
248239 - name : Upload coverage artifact
249240 uses : actions/upload-artifact@v4
250241 with :
251242 name : coverage-${{ matrix.python-version }}
252243 path : .coverage
244+ if-no-files-found : error
245+ include-hidden-files : .coverage
253246
254247 mypy :
255248 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments