mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
cedb0229f7
* selenium test file * selenium test * added save_to as interface attribute, 4 demo tests with selenium * change name to test_demos * fixed wait until, removed path insertion * added selenium to circleci config * trying chrome driver image * removing cache from circlci * using chromedriver_installer * adding deps for chromedriver * sudo * removed chromedriver * added chromium-chromedriver * using chromedriver-py * using service instead of exec path * using latest selenium * using browsers image * added cwd to tmp and test paths * saving artifacts * added tmp.txt * changed driver size * elem.text sleep * driver size fix * saving artifacts * saving artifacts correctly * saving artifacts correctly * saving artifactS * print statement * print statement * print statement * correct dir * debugging * debugging * debugging * fixing wonderful * running comparison * current dir fix * changing longest_word * fixed longest_word * clean up * fixing new output label name * time limit on while loops * refactoring common code * removed setUp * removed server_port declaration from demos Co-authored-by: Ali Abid <aliabid94@gmail.com>
33 lines
963 B
YAML
33 lines
963 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/python:3.7.2-browsers
|
|
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
|
|
pip install -r gradio.egg-info/requires.txt
|
|
pip install selenium==4.0.0a6.post2
|
|
- save_cache:
|
|
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
|
|
paths:
|
|
- "venv"
|
|
- run:
|
|
command: |
|
|
mkdir screenshots
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
python3 -m unittest
|
|
- store_artifacts:
|
|
path: /home/circleci/project/test/tmp
|
|
destination: screenshots
|
|
- store_test_results:
|
|
path: test-reports/ |