ci: Update CI path filters for frontend tests (#4571)
* Update changes-filter.yaml to include new component and starter project paths * Update CI path filters and conditions for frontend and component changes
This commit is contained in:
parent
da0399373a
commit
313f197c88
2 changed files with 11 additions and 8 deletions
7
.github/changes-filter.yaml
vendored
7
.github/changes-filter.yaml
vendored
|
|
@ -5,8 +5,11 @@ python:
|
||||||
- "pyproject.toml"
|
- "pyproject.toml"
|
||||||
- "poetry.lock"
|
- "poetry.lock"
|
||||||
- "**/python_test.yml"
|
- "**/python_test.yml"
|
||||||
tests:
|
components-changes:
|
||||||
- "tests/**"
|
- "src/backend/base/langflow/components/**"
|
||||||
|
starter-projects-changes:
|
||||||
|
- "src/backend/base/langflow/initial_setup/**"
|
||||||
|
frontend-tests:
|
||||||
- "src/frontend/tests/**"
|
- "src/frontend/tests/**"
|
||||||
frontend:
|
frontend:
|
||||||
- "src/frontend/**"
|
- "src/frontend/**"
|
||||||
|
|
|
||||||
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -54,14 +54,15 @@ jobs:
|
||||||
path-filter:
|
path-filter:
|
||||||
needs: set-ci-condition
|
needs: set-ci-condition
|
||||||
if: ${{ needs.set-ci-condition.outputs.should-run-ci == 'true' }}
|
if: ${{ needs.set-ci-condition.outputs.should-run-ci == 'true' }}
|
||||||
|
|
||||||
name: Filter Paths
|
name: Filter Paths
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
python: ${{ steps.filter.outputs.python }}
|
python: ${{ steps.filter.outputs.python }}
|
||||||
frontend: ${{ steps.filter.outputs.frontend }}
|
frontend: ${{ steps.filter.outputs.frontend }}
|
||||||
docs: ${{ steps.filter.outputs.docs }}
|
docs: ${{ steps.filter.outputs.docs }}
|
||||||
tests: ${{ steps.filter.outputs.tests }}
|
frontend-tests: ${{ steps.filter.outputs.frontend-tests }}
|
||||||
|
components-changes: ${{ steps.filter.outputs.components-changes }}
|
||||||
|
starter-projects-changes: ${{ steps.filter.outputs.starter-projects-changes }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -76,7 +77,7 @@ jobs:
|
||||||
test-backend:
|
test-backend:
|
||||||
needs: path-filter
|
needs: path-filter
|
||||||
name: Run Backend Tests
|
name: Run Backend Tests
|
||||||
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.tests == 'true' }}
|
if: ${{ needs.path-filter.outputs.python == 'true'}}
|
||||||
uses: ./.github/workflows/python_test.yml
|
uses: ./.github/workflows/python_test.yml
|
||||||
with:
|
with:
|
||||||
python-versions: ${{ inputs.python-versions || '["3.10"]' }}
|
python-versions: ${{ inputs.python-versions || '["3.10"]' }}
|
||||||
|
|
@ -84,7 +85,7 @@ jobs:
|
||||||
test-frontend:
|
test-frontend:
|
||||||
needs: path-filter
|
needs: path-filter
|
||||||
name: Run Frontend Tests
|
name: Run Frontend Tests
|
||||||
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.frontend == 'true' || needs.path-filter.outputs.tests == 'true' }}
|
if: ${{ needs.path-filter.outputs.frontend == 'true' || needs.path-filter.outputs.frontend-tests == 'true' || needs.path-filter.outputs.components-changes == 'true' || needs.path-filter.outputs.starter-projects-changes == 'true' }}
|
||||||
uses: ./.github/workflows/typescript_test.yml
|
uses: ./.github/workflows/typescript_test.yml
|
||||||
with:
|
with:
|
||||||
tests_folder: ${{ inputs.frontend-tests-folder }}
|
tests_folder: ${{ inputs.frontend-tests-folder }}
|
||||||
|
|
@ -94,10 +95,9 @@ jobs:
|
||||||
|
|
||||||
lint-backend:
|
lint-backend:
|
||||||
needs: path-filter
|
needs: path-filter
|
||||||
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.tests == 'true' }}
|
if: ${{ needs.path-filter.outputs.python == 'true'}}
|
||||||
name: Lint Backend
|
name: Lint Backend
|
||||||
uses: ./.github/workflows/lint-py.yml
|
uses: ./.github/workflows/lint-py.yml
|
||||||
# Run only if there are python files changed
|
|
||||||
|
|
||||||
test-docs-build:
|
test-docs-build:
|
||||||
needs: path-filter
|
needs: path-filter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue