mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
1b4cb3300b
* make eslint work * add vscodes recommendations + settings * more * format * add to ci but ignore failures * fix * fix lockfil * fix * Update .config/.eslintrc.cjs Co-authored-by: Aarni Koskela <akx@iki.fi> * implement review suggestions * typo * fix * tweak * add globals and fix client linting * fix type errors --------- Co-authored-by: Aarni Koskela <akx@iki.fi>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: gradio-ui
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
|
|
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
|
|
- name: install dependencies
|
|
uses: "./.github/actions/install-frontend-deps"
|
|
with:
|
|
always-install-pnpm: true
|
|
- name: build client
|
|
run: pnpm --filter @gradio/client build
|
|
- name: lint
|
|
run: pnpm lint
|
|
continue-on-error: true
|
|
- name: typecheck
|
|
run: pnpm ts:check
|
|
- name: unit tests
|
|
run: pnpm test:run
|
|
functional-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: install dependencies
|
|
uses: "./.github/actions/install-all-deps"
|
|
with:
|
|
always-install-pnpm: true
|
|
- name: install outbreak_forecast dependencies
|
|
run: |
|
|
. venv/bin/activate
|
|
python -m pip install -r demo/outbreak_forecast/requirements.txt
|
|
- run: pnpm exec playwright install chromium
|
|
- name: run browser tests
|
|
run: |
|
|
. venv/bin/activate
|
|
pnpm test:browser
|