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:
Gabriel Luiz Freitas Almeida 2024-07-02 16:40:57 -03:00 committed by GitHub
commit 8d1e4ff059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View file

@ -1,6 +1,7 @@
name: Python tests
on:
workflow_call:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]
branches: [main]

View file

@ -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 }}

View file

@ -1,6 +1,7 @@
name: Run Frontend Tests
on:
workflow_call:
workflow_dispatch:
inputs:
branch: