Skip to content

Commit

Permalink
base: Add Python package check
Browse files Browse the repository at this point in the history
pip install command does not return a non-zero exit code when there
exists a dependency conflict.

This commit adds a `pip3 check` call, which validates all installed
package dependencies and returns a non-zero exit code when there is a
breakage.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Dec 15, 2022
1 parent ab43e90 commit 78d1072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ RUN python3 -m pip install -U pip && \
-r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/master/scripts/requirements.txt \
-r https://raw.githubusercontent.com/zephyrproject-rtos/mcuboot/master/scripts/requirements.txt \
awscli GitPython imgtool junitparser numpy protobuf PyGithub \
pylint sh statistics west
pylint sh statistics west && \
pip3 check

# Clean up stale packages
RUN apt-get clean -y && \
Expand Down

0 comments on commit 78d1072

Please sign in to comment.