mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
37c8ee3974
* add static src to modify sketch * add themes * update all tooling to use the new frontend dir * revert formatting * update template index * fix formatting * fix scripts for new ui folder * remoce console.logs * remoce console.logs * ensure dataeries clear works correctly * ensure label chart has correct width * remove cropper when component is destroyed * update tailwind * remove console logs * fix formatting Co-authored-by: Ali Abid <aliabid94@gmail.com>
65 lines
1.8 KiB
YAML
65 lines
1.8 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.9.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
|
|
bash scripts/install_test_requirements.sh
|
|
- 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: |
|
|
npm i pnpm -g
|
|
cd ui
|
|
pnpm i --frozen-lockfile
|
|
pnpm build
|
|
- run:
|
|
command: |
|
|
mkdir screenshots
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
coverage run -m pytest
|
|
coverage xml
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
python -m black --check gradio test
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
python -m isort --profile=black --check-only gradio test
|
|
- run:
|
|
command: |
|
|
. venv/bin/activate
|
|
python -m flake8 --ignore=E731,E501,E722,W503,E126,F401,E203 gradio test
|
|
- codecov/upload:
|
|
file: 'coverage.xml'
|
|
- store_artifacts:
|
|
path: /home/circleci/project/test/tmp
|
|
destination: screenshots
|
|
- store_test_results:
|
|
path: test-reports/
|