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

Simplify tests #3608

Merged
merged 7 commits into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

## Testing and Infrastructure Changes:

No changes to highlight.
- Removed heavily-mocked tests related to comet_ml, wandb, and mlflow as they added a significant amount of test dependencies that prevented installation of test dependencies on Windows environemnts. By [@abidlabs](https://github.com/abidlabs) in [PR 3608](https://github.com/gradio-app/gradio/pull/3608)

## Breaking Changes:

Expand Down
3 changes: 1 addition & 2 deletions gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
set_documentation_group("blocks")

if TYPE_CHECKING: # Only import for type checking (is False at runtime).
import comet_ml
from fastapi.applications import FastAPI

from gradio.components import Component
Expand Down Expand Up @@ -1688,7 +1687,7 @@ def reverse(text):

def integrate(
self,
comet_ml: comet_ml.Experiment | None = None,
comet_ml=None,
wandb: ModuleType | None = None,
mlflow: ModuleType | None = None,
) -> None:
Expand Down
13 changes: 13 additions & 0 deletions scripts/create_test_requirements-37.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

cd "$(dirname ${0})/.."
source scripts/helpers.sh

pip_required

echo "Creating test requirements...
To match the CI environment, this script should be run from a Unix-like system in Python 3.7."

cd test
pip install --upgrade pip-tools
pip-compile requirements.in --output-file requirements-37.txt
5 changes: 3 additions & 2 deletions scripts/create_test_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ source scripts/helpers.sh
pip_required

echo "Creating test requirements...
It's recommended to run this script from a Unix-like system in Python 3.7 (or higher) environment."
To match the CI environment, this script should be run from a Unix-like system in Python 3.9."

cd test
pip install --upgrade pip-tools
pip-compile --output-file requirements.txt
pip-compile requirements.in --output-file requirements.txt
Loading