mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
@ -734,8 +734,15 @@ jobs:
|
|||||||
- name: Run pytest (partially)
|
- name: Run pytest (partially)
|
||||||
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
|
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. 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 \
|
python3 -X dev -m pytest \
|
||||||
-qq \
|
-qq \
|
||||||
--timeout=9 \
|
--timeout=9 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user