Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: (#9336 followup) skip poetry preperation in style workflow when no change in api folder (#9362)

Bowen Liangd5bc12561705
diff --git a/.github/workflows/db-migration-test.yml b/.github/workflows/db-migration-test.yml
index 67d1558dbca..a33cdacd80f 100644
--- a/.github/workflows/db-migration-test.yml
+++ b/.github/workflows/db-migration-test.yml
@@ -23,18 +23,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- - name: Install Poetry
- uses: abatilo/actions-poetry@v3
-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- cache: 'poetry'
cache-dependency-path: |
api/pyproject.toml
api/poetry.lock
+ - name: Install Poetry
+ uses: abatilo/actions-poetry@v3
+
- name: Install dependencies
run: poetry install -C api
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 246854cf0bf..7eb60aa51ed 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -31,6 +31,7 @@ jobs:
python-version: '3.10'
- name: Install Poetry
+ if: steps.changed-files.outputs.any_changed == 'true'
uses: abatilo/actions-poetry@v3
- name: Python dependencies