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:
Franck Nijhof 2022-01-07 15:30:45 +01:00 committed by GitHub
parent e7ef317b43
commit 56692b5a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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 \