Skip to content

Commit

Permalink
Setup Redis when running GitHub python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed May 7, 2023
1 parent d634a41 commit 61eb643
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- '**.py'
- .github/workflows/python-checks.yml
- github_action_scripts/python_checks.sh
- github_action_scripts/setup_redis.sh
jobs:
pip-install-and-tests:
runs-on: ubuntu-latest
Expand All @@ -19,5 +20,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Redis setup
run: ${GITHUB_WORKSPACE}/github_action_scripts/setup_redis.sh
- name: Pip install and tests
run: ${GITHUB_WORKSPACE}/github_action_scripts/python_checks.sh
10 changes: 10 additions & 0 deletions github_action_scripts/setup_redis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Run from .github/workflows/python-checks.yml
# Set up Redis for NLP Webserver tests

set -eux -o pipefail

sudo apt-get -y update
sudo apt-get -y install redis-server

sudo netstat -lnp | grep redis

0 comments on commit 61eb643

Please sign in to comment.