mirror of
https://github.com/home-assistant/core.git
synced 2025-04-19 14:57:52 +00:00
Fix pip_check (#68421)
This commit is contained in:
parent
972afc5cea
commit
3b798ee14a
@ -128,6 +128,7 @@ other: &other
|
||||
requirements: &requirements
|
||||
- .github/workflows/**
|
||||
- homeassistant/package_constraints.txt
|
||||
- script/pip_check
|
||||
- requirements*.txt
|
||||
- setup.cfg
|
||||
|
||||
|
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -686,7 +686,7 @@ jobs:
|
||||
|
||||
pip-check:
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.changes.outputs.requirements == 'true'
|
||||
if: needs.changes.outputs.requirements == 'true' || github.event.inputs.full == 'true'
|
||||
needs:
|
||||
- changes
|
||||
- prepare-tests
|
||||
|
@ -3,7 +3,7 @@ PIP_CACHE=$1
|
||||
|
||||
# Number of existing dependency conflicts
|
||||
# Update if a PR resolve one!
|
||||
DEPENDENCY_CONFLICTS=4
|
||||
DEPENDENCY_CONFLICTS=7
|
||||
|
||||
PIP_CHECK=$(pip check --cache-dir=$PIP_CACHE)
|
||||
LINE_COUNT=$(echo "$PIP_CHECK" | wc -l)
|
||||
@ -14,6 +14,7 @@ then
|
||||
echo "------"
|
||||
echo "Requirements change added another dependency conflict."
|
||||
echo "Make sure to check the 'pip check' output above!"
|
||||
echo "Expected $DEPENDENCY_CONFLICTS conflicts, got $LINE_COUNT."
|
||||
exit 1
|
||||
elif [[ $((LINE_COUNT)) -lt $DEPENDENCY_CONFLICTS ]]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user