Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a github action to run a test on all examples #1

Open
ogabrielluiz opened this issue Apr 19, 2023 · 0 comments
Open

Add a github action to run a test on all examples #1

ogabrielluiz opened this issue Apr 19, 2023 · 0 comments

Comments

@ogabrielluiz
Copy link
Collaborator

Github action similar to LangFlow's that runs a test loading all examples using

from langflow import load_flow_from_json

obj = load_flow_from_json('examples/example.json')

So, something like:

def test_example_loading():
	for example_path in example_paths:
		obj = load_flow_from_json(example_path)
		assert obj is not None, example_path

The test should install the latest LangFlow version and run tests.
Example we can adapt: https://github.com/logspace-ai/langflow/blob/0b087e28c562b8be817ea04d21bcb05146747a76/.github/workflows/test.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant