ci: add inputs to workflow call of ci and release (#3488)
* ci: Add dynamic input for Python versions and frontend tests folder in CI workflow. * build: Update python versions to ['3.10', '3.11', '3.12'] and set frontend tests folder to 'tests'
This commit is contained in:
parent
450cc20ebf
commit
280d1ca6bc
2 changed files with 16 additions and 2 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -2,6 +2,17 @@ name: CI
|
|||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
python-versions:
|
||||
description: "Python Versions"
|
||||
required: false
|
||||
type: string
|
||||
default: "['3.10']"
|
||||
frontend-tests-folder:
|
||||
description: "Frontend Tests Folder"
|
||||
required: false
|
||||
type: string
|
||||
default: "tests/end-to-end"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
|
|
@ -63,7 +74,7 @@ jobs:
|
|||
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.tests == 'true' }}
|
||||
uses: ./.github/workflows/python_test.yml
|
||||
with:
|
||||
python-versions: "['3.10']"
|
||||
python-versions: ${{ inputs.python-versions }}
|
||||
|
||||
test-frontend:
|
||||
needs: path-filter
|
||||
|
|
@ -71,7 +82,7 @@ jobs:
|
|||
if: ${{ needs.path-filter.outputs.python == 'true' || needs.path-filter.outputs.frontend == 'true' || needs.path-filter.outputs.tests == 'true' }}
|
||||
uses: ./.github/workflows/typescript_test.yml
|
||||
with:
|
||||
tests_folder: "tests/end-to-end"
|
||||
tests_folder: ${{ inputs.frontend-tests-folder }}
|
||||
secrets:
|
||||
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
|
||||
STORE_API_KEY: "${{ secrets.STORE_API_KEY }}"
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -39,6 +39,9 @@ jobs:
|
|||
if: ${{ github.event.inputs.release_package_base == 'true' || github.event.inputs.release_package_main == 'true' }}
|
||||
name: CI
|
||||
uses: ./.github/workflows/ci.yml
|
||||
with:
|
||||
python-versions: "['3.10', '3.11', '3.12']"
|
||||
frontend-tests-folder: "tests"
|
||||
|
||||
release-base:
|
||||
name: Release Langflow Base
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue