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
Fail CI if lint or typecheck fails #7770
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/c4e259cd749ae4de48bc96c9b0d877d58a35230d/gradio-4.22.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@c4e259cd749ae4de48bc96c9b0d877d58a35230d#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
Let me also fix the error in multimodal textbox python file |
Ok cleaned up the typing in the multimodaltextbox component as well. |
) -> dict[str, str | list] | None: | ||
def _preprocess_file(self, path: str) -> str: | ||
file_name = path | ||
file = tempfile.NamedTemporaryFile(delete=False, dir=self.GRADIO_CACHE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come we need this now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry my bad, we don't need this. Let me remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix @abidlabs !
Gonna get this in to fix the CI - and I'll have another ChatInterface PR open soon |
Turns out that that the way we were calling our bash scripts was the issue:
bypasses the shebang line because when you tell the shell to use
bash
explicitly, it no longer no longer needs to read the shebang line. Therefore it ignores that-e
flag that would tell the script to terminate with a 1 exit code and fail the CI.Instead, we need to execute it directly:
I've confirmed on a fork that this fixes the issue: https://github.com/abidlabs/gradio/actions/runs/8365477830/job/22903396215