fix tests

This commit is contained in:
Ali Abid 2021-08-17 18:42:30 +00:00
parent 957151df4b
commit ada6488a05
3 changed files with 26 additions and 4 deletions

View File

@ -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

3
.gitignore vendored
View File

@ -1,7 +1,8 @@
venv
dist/
.eggs/
*.egg-info
gradio.egg-info/*
!gradio.egg-info/requires.txt
*.pyc
staticfiles
.env

View File

@ -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