bug: more cross-platform test debug (#9262)
This commit is contained in:
parent
efe5bddd5b
commit
20343ea5f9
1 changed files with 5 additions and 11 deletions
16
.github/workflows/cross-platform-test.yml
vendored
16
.github/workflows/cross-platform-test.yml
vendored
|
|
@ -3,12 +3,8 @@ name: Cross-Platform Installation Test
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
test-from-pypi:
|
|
||||||
description: "Test from PyPI instead of building from source"
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
langflow-version:
|
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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|
@ -27,9 +23,7 @@ jobs:
|
||||||
build-if-needed:
|
build-if-needed:
|
||||||
name: Build Packages (if no artifacts provided)
|
name: Build Packages (if no artifacts provided)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
if: github.event_name == 'workflow_dispatch' && inputs.langflow-version == ''
|
||||||
(github.event_name == 'workflow_dispatch' && inputs.test-from-pypi == false) ||
|
|
||||||
(github.event_name == 'workflow_call' && inputs.base-artifact-name == '' && inputs.main-artifact-name == '')
|
|
||||||
outputs:
|
outputs:
|
||||||
base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }}
|
base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }}
|
||||||
main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }}
|
main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }}
|
||||||
|
|
@ -144,7 +138,7 @@ jobs:
|
||||||
id: install-method
|
id: install-method
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
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
|
echo "method=pypi" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "method=wheel" >> $GITHUB_OUTPUT
|
echo "method=wheel" >> $GITHUB_OUTPUT
|
||||||
|
|
@ -373,7 +367,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ needs.test-installation.result }}" != "success" ]; then
|
if [ "${{ needs.test-installation.result }}" != "success" ]; then
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; 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"
|
echo "❌ PyPI installation tests failed"
|
||||||
else
|
else
|
||||||
echo "❌ Source build and installation tests failed"
|
echo "❌ Source build and installation tests failed"
|
||||||
|
|
@ -384,7 +378,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; 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 passed"
|
echo "✅ PyPI installation tests passed"
|
||||||
else
|
else
|
||||||
echo "✅ Source build and installation tests passed"
|
echo "✅ Source build and installation tests passed"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue