Skip to content

Commit

Permalink
Merge pull request #23 from langchain-ai/eugene/redis_service
Browse files Browse the repository at this point in the history
Fix env variable to get tests running
  • Loading branch information
eyurtsev authored Nov 10, 2023
2 parents fea1721 + 3c9801e commit 76eaae6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 63 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/_test.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
paths:
- '.github/actions/poetry_setup/action.yml'
- '.github/workflows/_lint.yml'
- '.github/workflows/_test.yml'
- '.github/workflows/langserve_ci.yml'
- 'backend/**'
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
Expand All @@ -25,14 +24,14 @@ concurrency:

env:
POETRY_VERSION: "1.5.1"
WORKDIR: "backend/"
WORKDIR: "./backend"

jobs:
lint:
uses:
./.github/workflows/_lint.yml
with:
working-directory: ${{ env.WORKDIR }}
working-directory: "./backend"
secrets: inherit

test:
Expand Down Expand Up @@ -63,8 +62,8 @@ jobs:
- name: Install dependencies
shell: bash
run: |
echo "Running extended tests, installing dependencies with poetry..."
poetry install --with test,lint --extras all
echo "Running tests, installing dependencies with poetry..."
poetry install --with test,lint
- name: Run tests
run: make test
Expand Down
2 changes: 1 addition & 1 deletion backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all: help
TEST_FILE ?= tests/unit_tests/

test:
poetry run pytest --disable-socket --allow-unix-socket $(TEST_FILE)
poetry run pytest $(TEST_FILE)

test_watch:
poetry run ptw . -- $(TEST_FILE)
Expand Down

0 comments on commit 76eaae6

Please sign in to comment.