bug: more cross-platform test debug (#9262)

This commit is contained in:
Eric Pinzur 2025-07-31 15:23:31 +02:00 committed by GitHub
commit 20343ea5f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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