mirror of https://github.com/home-assistant/core
Fail CI when package init file is missing in component tests (#63589)
* Fail CI when package init file is missing in component * Warning -> error * Force bash Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
parent
e7ef317b43
commit
56692b5a2a
|
@ -734,8 +734,15 @@ jobs:
|
|||
- name: Run pytest (partially)
|
||||
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
|
||||
timeout-minutes: 10
|
||||
shell: bash
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
|
||||
if [[ ! -f "tests/components/${{ matrix.group }}/__init__.py" ]]; then
|
||||
echo "::error:: missing file tests/components/${{ matrix.group }}/__init__.py"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3 -X dev -m pytest \
|
||||
-qq \
|
||||
--timeout=9 \
|
||||
|
|
Loading…
Reference in New Issue