Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Redis Flow Tests on GitHub #1259

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/flow_redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- v03_disabled
- '*redis*'

paths-ignore:
- '.github/**'
Expand Down
18 changes: 17 additions & 1 deletion travis/add_redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,25 @@ else
fi
echo -e "..done\n"

# later OS versions have later versions of pip that require convincing to actually install.
. /etc/os-release
if [ "${VERSION_ID}" \> "22.04" ]; then
pip_install="pip3 install --break-system-packages --user "
else
pip_install="pip3 install "
fi

echo "Install Redis Python modules... "
# Install Python modules
pip3 install redis python-redis-lock
sudo apt -y install python3-redis || true
for PKG in redis python-redis-lock; do
PKG_INSTALLED="`pip3 list | grep ${PKG}`"
if [ "$?" == "0" ] ; then
echo "$PKG is already installed"
else
${pip_install} ${PKG}
fi
done
echo -e "..done\n"

echo "Add redis options to sr3 default config... "
Expand Down
Loading