From ada6488a0520a1c3edfab89fd299213ebc18de58 Mon Sep 17 00:00:00 2001 From: Ali Abid Date: Tue, 17 Aug 2021 18:42:30 +0000 Subject: [PATCH] fix tests --- .circleci/config.yml | 12 +++++++++--- .gitignore | 3 ++- gradio.egg-info/requires.txt | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 gradio.egg-info/requires.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index edf483ccb3..143fc1822c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,18 +6,24 @@ jobs: steps: - checkout - run: mkdir test-reports + - restore_cache: + key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }} - run: name: Install Python deps in a venv command: | python3 -m venv venv . venv/bin/activate - venv/bin/pip3 install --upgrade pip - venv/bin/python3 setup.py install - venv/bin/pip3 install selenium==4.0.0a6.post2 + pip install --upgrade pip + pip install -r gradio.egg-info/requires.txt + pip install selenium==4.0.0a6.post2 - run: command: | chromedriver --version name: Check chrome driver install + - save_cache: + key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }} + paths: + - "venv" - run: command: | mkdir screenshots diff --git a/.gitignore b/.gitignore index 5eb67896e6..4aa69d2db4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ venv dist/ .eggs/ -*.egg-info +gradio.egg-info/* +!gradio.egg-info/requires.txt *.pyc staticfiles .env diff --git a/gradio.egg-info/requires.txt b/gradio.egg-info/requires.txt new file mode 100644 index 0000000000..b6135b3e41 --- /dev/null +++ b/gradio.egg-info/requires.txt @@ -0,0 +1,15 @@ +Flask-Cors>=3.0.8 +Flask-Login +Flask>=1.1.1 +analytics-python +ffmpy +flask-cachebuster +markdown2 +matplotlib +numpy +pandas +paramiko +pillow +pycryptodome +requests +scipy