Skip to content

Commit

Permalink
quick attempt at fixing redis flow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Oct 10, 2024
1 parent 5e331dc commit d01cf3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
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

0 comments on commit d01cf3a

Please sign in to comment.