Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Nov 11, 2023
1 parent 7b77207 commit 3ee72b9
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,36 @@ jobs:
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: .
cache-key: langserve-all

- name: Install dependencies
shell: bash
- name: install redis
run: |
echo "Running tests, installing dependencies with poetry..."
poetry install --with test,lint
- name: Run tests
run: make test
env:
# Adding a DB number to match unit tests
# Unit tests use DB 3, so user doesn't accidentally wipe their data
# if they run the tests against a real redis instance.
# Need to follow up and swap out default port numbers and add `test`
# password
REDIS_URL: "redis://redis:6379/0"
- name: Ensure the tests did not create any additional files
shell: bash
pip install redis
- name: check redis is running
run: |
set -eu
STATUS="$(git status)"
echo "$STATUS"
python -c "import redis; redis.Redis(host='redis', port=6379).ping()"
# grep will exit non-zero if the target message isn't found,
# and `set -e` above will cause the step to fail.
echo "$STATUS" | grep 'nothing to commit, working tree clean'
# - name: Install dependencies
# shell: bash
# run: |
# echo "Running tests, installing dependencies with poetry..."
# poetry install --with test,lint
#
# - name: Run tests
# run: make test
# env:
# # Adding a DB number to match unit tests
# # Unit tests use DB 3, so user doesn't accidentally wipe their data
# # if they run the tests against a real redis instance.
# # Need to follow up and swap out default port numbers and add `test`
# # password
# REDIS_URL: "redis://redis:6379/0"
# - name: Ensure the tests did not create any additional files
# shell: bash
# run: |
# set -eu
#
# STATUS="$(git status)"
# echo "$STATUS"
#
# # grep will exit non-zero if the target message isn't found,
# # and `set -e` above will cause the step to fail.
# echo "$STATUS" | grep 'nothing to commit, working tree clean'

0 comments on commit 3ee72b9

Please sign in to comment.