Skip to content

Commit 856c5db

Browse files
committed
Fix for upload-artifact #602
1 parent e10f676 commit 856c5db

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/verify.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ jobs:
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

0 commit comments

Comments
 (0)