Speedup hassfest on single-integration

This commit is contained in:
epenet 2024-11-28 15:15:27 +00:00
parent 8300fd2de8
commit da7db73e5e

View File

@ -588,7 +588,13 @@ jobs:
- name: Run hassfest
run: |
. venv/bin/activate
python -m script.hassfest --requirements --action validate
integration_params=""
if [[ "${{ needs.info.outputs.integrations_glob }}" != "" && "${{ needs.info.outputs.integrations_glob }}" != *","* ]]; then
integration_params=(--integration-path homeassistant/components/${{ needs.info.outputs.integrations_glob }})
fi
python -m script.hassfest --requirements --action validate ${integration_params}
gen-requirements-all:
name: Check all requirements