mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
d6fbc32ed1
* add theme + theme atoms * audio * buttons * chatbot * forms * start file * complete file * fixup workbench * gallery * highlighted text * label * json * upload * 3d model * atoms * chart * md + html * image * plot + build * table * tabs * tooltip * upload * tweaks * tweaks + more tooling * tweaks to padding/ lineheight * app components _ start api docs * format, more api docs * finish api docs * interpretation * todos * tweaks + cleanup * tweaks + cleanup * revert range tweaks * fix notebooks * fix test * remove tw * cleanup + login * fix gitignore * fix types * run css script * fix progress + tweaks * update demos * add css build to static check workflow * tweak ci * fix tests * tweak markdown * tweak chatbot + file * fix tabs * tweak tabs * cleanup * fix api docs * fix example gallery * add gradient to toast * fix min height for interfaces * revert tab changes * update notebooks * fix generating status animation * fix weird table scrollbar that only appears on freddy's computer * format * fix dataset in gallery mode * cleanup * fix notebooks * tweaks * fix notebooks * change Co-authored-by: Ali Abid <aabid94@gmail.com>
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
name: gradio-ui
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ui
|
|
|
|
env:
|
|
CI: true
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
|
|
NODE_OPTIONS: "--max-old-space-size=4096"
|
|
|
|
concurrency:
|
|
group: deploy-${{ github.ref }}-${{ github.event_name == 'push' || github.event.inputs.fire != null }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
quick-checks:
|
|
name: static checks
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2.2.1
|
|
with:
|
|
version: 7
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: pnpm
|
|
cache-dependency-path: ui/pnpm-lock.yaml
|
|
- name: install dependencies
|
|
run: pnpm i --frozen-lockfile
|
|
- name: formatting check
|
|
run: pnpm format:check
|
|
- name: build css
|
|
run: pnpm css
|
|
- name: typecheck
|
|
run: pnpm ts:check
|
|
- name: unit tests
|
|
run: pnpm test:run
|
|
functional-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2.2.1
|
|
with:
|
|
version: 7
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: pnpm
|
|
cache-dependency-path: ui/pnpm-lock.yaml
|
|
- name: Install Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.x'
|
|
- run: cd .. && bash scripts/install_gradio.sh
|
|
- run: pip install -r ../demo/outbreak_forecast/requirements.txt
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm exec playwright install chromium
|
|
- run: pnpm test:browser:full
|
|
- name: Upload failed tests screenshots
|
|
if: failure()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
retention-days: 3
|
|
name: test-failure-${{ github.run_id }}
|
|
path: ui/packages/app/test-results
|