mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
9bf16c2211
* api view with basic html * added base docs for raw inputs/outputs * reading correct url from frontend * styling * fill in the blank request snippet * post a request from docs * post button and random generator * styling * added view the api to interface * style changes * corrected input output docs * prefill with example instead of random * added curl and javascript syntax * removed scrollbars * API doc fixes * added correct docs to all pre/post processing methods * updated to new doc style * live demo with sample inputs * fixing golden screenshots * correct timeseries preprocess doc * correct timeseries preprocess doc * correct timeseries preprocess doc * fixed overwrite issue * remove static from git * fix merge * fix tests * fix tests * fix tests Co-authored-by: Ali Abid <you@example.comgit>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
version: 2.1
|
|
orbs:
|
|
codecov: codecov/codecov@3.1.1
|
|
node: circleci/node@4.7.0
|
|
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 --upgrade pip
|
|
pip install -r gradio.egg-info/requires.txt
|
|
pip install shap IPython
|
|
pip install selenium==4.0.0a6.post2 coverage
|
|
- run:
|
|
command: |
|
|
chromedriver --version
|
|
name: Check chrome driver install
|
|
- save_cache:
|
|
key: deps1-{{ .Branch }}-{{ checksum "gradio.egg-info/requires.txt" }}
|
|
paths:
|
|
- "venv"
|
|
- node/install:
|
|
node-version: 14.17.4
|
|
npm-version: 8.1.0
|
|
- run:
|
|
name: Build frontend
|
|
command: |
|
|
cd frontend
|
|
npm install
|
|
npm run build
|
|
- run:
|
|
command: |
|
|
mkdir screenshots
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
coverage run -m unittest
|
|
coverage xml
|
|
- codecov/upload:
|
|
file: 'coverage.xml'
|
|
- store_artifacts:
|
|
path: /home/circleci/project/test/tmp
|
|
destination: screenshots
|
|
- store_test_results:
|
|
path: test-reports/
|