Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Sep 30, 2023
1 parent dd6c67d commit a481c5d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 29 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/langserve_ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: libs/langserve CI
name: CI

on:
push:
Expand All @@ -10,7 +10,9 @@ on:
- '.github/workflows/_lint.yml'
- '.github/workflows/_test.yml'
- '.github/workflows/langserve_ci.yml'
- 'libs/langserve/**'
- 'langserve/**'
- 'pyproject.toml'
- 'Makefile'
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI

# If another push to the same PR or branch happens while this workflow is still running,
Expand All @@ -25,14 +27,14 @@ concurrency:

env:
POETRY_VERSION: "1.5.1"
WORKDIR: "libs/langserve"
WORKDIR: "."

jobs:
lint:
uses:
./.github/workflows/_lint.yml
with:
working-directory: libs/langserve
working-directory: .
secrets: inherit

test:
Expand All @@ -56,7 +58,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: libs/langserve
working-directory: .
cache-key: langserve-all

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/langserve_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: libs/langserve Release
name: Release

on:
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
Expand All @@ -9,5 +9,5 @@ jobs:
uses:
./.github/workflows/_release.yml
with:
working-directory: libs/langserve
working-directory: .
secrets: inherit
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test:
# Define a variable for Python and notebook files.
PYTHON_FILES=.
lint format: PYTHON_FILES=.
lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=libs/langserve --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$')
lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=. --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$')

lint lint_diff:
poetry run ruff .
Expand Down
35 changes: 15 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fastapi = {version = ">0.90.1", optional = true}
sse-starlette = {version = "^1.3.0", optional = true}
httpx-sse = {version = "^0.3.1", optional = true}
pydantic = "^1"
langchain = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/langchain" }
langchain = "^0.0.305"

[tool.poetry.group.dev.dependencies]
jupyterlab = "^3.6.1"
Expand Down

0 comments on commit a481c5d

Please sign in to comment.