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:
Gabriel Luiz Freitas Almeida 2024-08-21 22:22:20 -03:00 committed by GitHub
commit 280d1ca6bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View file

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

View file

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