forked from langflow-ai/langflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
378488a
commit b5fc296
Showing
938 changed files
with
56,865 additions
and
38,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ Dockerfile text | |
*.mp4 binary | ||
*.svg binary | ||
*.csv binary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Test Docker images | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "docker/**" | ||
- "poetry.lock" | ||
- "pyproject.toml" | ||
- "src/backend/**" | ||
- ".github/workflows/docker_test.yml" | ||
pull_request: | ||
branches: [dev] | ||
paths: | ||
- "docker/**" | ||
- "poetry.lock" | ||
- "pyproject.toml" | ||
- "src/**" | ||
- ".github/workflows/docker_test.yml" | ||
|
||
env: | ||
POETRY_VERSION: "1.8.2" | ||
|
||
jobs: | ||
test-docker: | ||
runs-on: ubuntu-latest | ||
name: Test docker images | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build image | ||
run: | | ||
docker build -t langflowai/langflow:latest-dev \ | ||
-f docker/build_and_push.Dockerfile \ | ||
. | ||
- name: Test image | ||
run: | | ||
expected_version=$(cat pyproject.toml | grep version | head -n 1 | cut -d '"' -f 2) | ||
version=$(docker run --rm --entrypoint bash langflowai/langflow:latest-dev -c 'python -c "from langflow.version import __version__ as langflow_version; print(langflow_version)"') | ||
if [ "$expected_version" != "$version" ]; then | ||
echo "Expected version: $expected_version" | ||
echo "Actual version: $version" | ||
exit 1 | ||
fi | ||
- name: Build backend image | ||
run: | | ||
docker build -t langflowai/langflow-backend:latest-dev \ | ||
--build-arg LANGFLOW_IMAGE=langflowai/langflow:latest-dev \ | ||
-f docker/build_and_push_backend.Dockerfile \ | ||
. | ||
- name: Test backend image | ||
run: | | ||
expected_version=$(cat pyproject.toml | grep version | head -n 1 | cut -d '"' -f 2) | ||
version=$(docker run --rm --entrypoint bash langflowai/langflow-backend:latest-dev -c 'python -c "from langflow.version import __version__ as langflow_version; print(langflow_version)"') | ||
if [ "$expected_version" != "$version" ]; then | ||
echo "Expected version: $expected_version" | ||
echo "Actual version: $version" | ||
exit 1 | ||
fi | ||
- name: Build frontend image | ||
run: | | ||
docker build -t langflowai/langflow-frontend:latest-dev \ | ||
-f docker/frontend/build_and_push_frontend.Dockerfile \ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Lint Frontend | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/frontend/**" | ||
|
||
env: | ||
NODE_VERSION: "21" | ||
|
||
jobs: | ||
run-linters: | ||
name: Run Prettier | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
id: setup-node | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Cache Node.js dependencies | ||
uses: actions/cache@v4 | ||
id: npm-cache | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('src/frontend/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install Node.js dependencies | ||
run: | | ||
cd src/frontend | ||
npm install | ||
if: ${{ steps.setup-node.outputs.cache-hit != 'true' }} | ||
|
||
- name: Run Prettier | ||
run: | | ||
cd src/frontend | ||
npm run format | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Apply Prettier formatting | ||
branch: ${{ github.head_ref }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "ruff", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(Would reformat): (.+)$", | ||
"message": 1, | ||
"file": 2 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: PR checker | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
pr-checker: | ||
name: Check PR description | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Run PR title check | ||
uses: transferwise/actions-pr-checker@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_TITLE_CONTAINS_PATTERN: ".{15,}" # Require at least 10 characters in the title | ||
PR_COMMENT: | | ||
Please provide a more meaningful PR title with at least 15 characters. | ||
- name: Run PR description check | ||
uses: transferwise/actions-pr-checker@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_CONTAINS_PATTERN: ".{25,}" # Require at least 10 characters in the description | ||
PR_COMMENT: | | ||
Please provide a more meaningful PR description with at least 25 characters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.