Skip to content

Commit

Permalink
Installation test to ensure the extra dependencies don't change their…
Browse files Browse the repository at this point in the history
… name (#1910)
  • Loading branch information
emasab authored Jan 24, 2025
1 parent ca7b7dc commit ca8bc22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/source-package-verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ python3 -m pip install .

if [[ $OS_NAME == linux && $ARCH == x64 ]]; then
if [[ -z $TEST_CONSUMER_GROUP_PROTOCOL ]]; then
# Run these actions and tests only in this case
echo "Building documentation ..."
flake8 --exclude ./_venv,*_pb2.py
pip install -r requirements/requirements-docs.txt
make docs

echo "Testing extra dependencies ..."
python3 -m pip install --dry-run --report ./pip-install.json .[schema-registry,avro,json,protobuf]
if [ $(jq '.install[0].metadata.provides_extra' pip-install.json | egrep '"(schema-registry|schemaregistry|avro|json|protobuf|rules)"' | wc -l) != "6" ]; then
echo "Failing: package does not provide all extras necessary for backward compatibility"
exit 1
fi
rm -f ./pip-install.json
fi
python -m pytest --timeout 1200 --ignore=dest
else
Expand Down

0 comments on commit ca8bc22

Please sign in to comment.