ci: add 'test' job to run Typescript and Python tests (#2489)
* chore: update workflow_dispatch in Python and TypeScript test workflows * feat(release.yml): add a new 'test' job to run Typescript and Python tests before releasing Langflow Main to ensure code quality and stability. Update dependencies to include Typescript and Python test workflows.
This commit is contained in:
parent
629df8fef3
commit
8d1e4ff059
3 changed files with 14 additions and 1 deletions
1
.github/workflows/python_test.yml
vendored
1
.github/workflows/python_test.yml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
name: Python tests
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, auto_merge_enabled]
|
||||
branches: [main]
|
||||
|
|
|
|||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -20,8 +20,19 @@ env:
|
|||
POETRY_VERSION: "1.8.2"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Call Typescript Test Workflow
|
||||
uses: langflow-ai/langflow/.github/workflows/typescript_test.yml@main
|
||||
with:
|
||||
branch: ${{ github.ref }}
|
||||
- name: Call Python Test Workflow
|
||||
uses: langflow-ai/langflow/.github/workflows/python_test.yml@main
|
||||
release-base:
|
||||
name: Release Langflow Base
|
||||
needs: test
|
||||
if: inputs.release_package == true
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
|
|
@ -82,7 +93,7 @@ jobs:
|
|||
release-main:
|
||||
name: Release Langflow Main
|
||||
if: inputs.release_package == true
|
||||
needs: release-base
|
||||
needs: [release-base, test]
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ steps.check-version.outputs.version }}
|
||||
|
|
|
|||
1
.github/workflows/typescript_test.yml
vendored
1
.github/workflows/typescript_test.yml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
name: Run Frontend Tests
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue