From 20343ea5f90993169efcdef960a8a14d27198c6f Mon Sep 17 00:00:00 2001 From: Eric Pinzur <2641606+epinzur@users.noreply.github.com> Date: Thu, 31 Jul 2025 15:23:31 +0200 Subject: [PATCH] bug: more cross-platform test debug (#9262) --- .github/workflows/cross-platform-test.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cross-platform-test.yml b/.github/workflows/cross-platform-test.yml index 76775d3b8..c35079ac0 100644 --- a/.github/workflows/cross-platform-test.yml +++ b/.github/workflows/cross-platform-test.yml @@ -3,12 +3,8 @@ name: Cross-Platform Installation Test on: workflow_dispatch: inputs: - test-from-pypi: - description: "Test from PyPI instead of building from source" - type: boolean - default: false langflow-version: - description: "Langflow version to test from PyPI (leave empty for latest)" + description: "Langflow version to test from PyPI (leave empty to test from source)" required: false type: string default: "" @@ -27,9 +23,7 @@ jobs: build-if-needed: name: Build Packages (if no artifacts provided) runs-on: ubuntu-latest - if: | - (github.event_name == 'workflow_dispatch' && inputs.test-from-pypi == false) || - (github.event_name == 'workflow_call' && inputs.base-artifact-name == '' && inputs.main-artifact-name == '') + if: github.event_name == 'workflow_dispatch' && inputs.langflow-version == '' outputs: base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }} main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }} @@ -144,7 +138,7 @@ jobs: id: install-method run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - if [ "${{ inputs.test-from-pypi }}" = "true" ]; then + if [ -n "${{ inputs.langflow-version }}" ]; then echo "method=pypi" >> $GITHUB_OUTPUT else echo "method=wheel" >> $GITHUB_OUTPUT @@ -373,7 +367,7 @@ jobs: run: | if [ "${{ needs.test-installation.result }}" != "success" ]; then if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - if [ "${{ inputs.test-from-pypi }}" = "true" ]; then + if [ -n "${{ inputs.langflow-version }}" ]; then echo "❌ PyPI installation tests failed" else echo "❌ Source build and installation tests failed" @@ -384,7 +378,7 @@ jobs: exit 1 else if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - if [ "${{ inputs.test-from-pypi }}" = "true" ]; then + if [ -n "${{ inputs.langflow-version }}" ]; then echo "✅ PyPI installation tests passed" else echo "✅ Source build and installation tests passed"