Commit Graph

106 Commits

Author SHA1 Message Date
Hannah
33b5954a3b
Add gradio storybook (#4696)
* initialise storybook

* fix storybook config

* more config

* add test story

* add button story

* add a11y addon

* add chromatic job

* fix script path

* fix path again

* yml tweak

* typo

* tweak

* tweak job

* change when job runs

* revert change

* revert lockfile

* config tweaks

* regen lockfile

* tweak

* tweak

* move chromatic tests to ui workflow

* tweak

* add install deps cmd

* add install pnpm input

* job tweak

* test

* clean up

* regen lockfile

* remove redundant option

* workflow tweak

* tweak

* tweak

* cli tweak

* cli tweak

* restore inspector prop

* skip frontend gradio build and post sb url to PR

* remove pollen import

* cancel job if no-visual-update tag present

* move stoeybook files to /js and amend pnpm scripts

* tweak theme css script

* tweak action body / test tag

* fix plot test and tweak pr comment job

* fix yml

* add gh token

* test

* update pnpm lock

* yml test

* restore yml update comment
2023-07-03 16:21:00 +02:00
pngwn
96802fa135
Fix again (#4728)
* fix

* fix

* fix

* asdasd
2023-06-29 15:41:26 +01:00
pngwn
f082dd6e63
fix (#4727)
* fix

* fix

* fix
2023-06-29 15:33:32 +01:00
pngwn
fd6735b734
Fix 123 (#4723)
* fix

* fix again

* fix again

* fix again

* fix again
2023-06-29 14:19:29 +01:00
pngwn
16782b9b1f
Fix 123 (#4722)
* fix

* fix again

* fix again
2023-06-29 14:07:14 +01:00
Yuichiro Tachibana (Tsuchiya)
927c176ef6
Add js/lite/package.json (#4718) 2023-06-29 13:25:29 +01:00
pngwn
d08610af84
uopdate (#4706) 2023-06-28 15:15:59 +01:00
Freddy Boulton
340718e6c2
Slider browser unit tests (#4681)
* First commit

* Fix test

* move to .config

* indent

* Upgrade pnpm

* Lint + ts

* Add more tests

* Lint

* fix test

* Use spy
2023-06-27 10:28:27 -04:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) (#4402) 2023-06-27 08:09:50 +01:00
renovate[bot]
4a0e387e7b
chore(deps): update pypa/gh-action-pypi-publish digest to 3be882c (#4600)
* chore(deps): update pypa/gh-action-pypi-publish digest to 3be882c

* fix action version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-23 14:56:08 +01:00
pngwn
12bc241ecb
fix action (#4643)
* fix action

* changelog
2023-06-22 13:55:43 +01:00
renovate[bot]
870786672c
chore(deps): update thollander/actions-comment-pull-request action to v2 (#4641) 2023-06-22 12:20:46 +01:00
pngwn
1b4cb3300b
Eslint (#4593)
* 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>
2023-06-22 11:25:27 +01:00
renovate[bot]
0807a7c227
chore(deps): update actions/setup-python action to v4 (#4611)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-21 19:15:52 +01:00
renovate[bot]
efbf3b3b06
chore(deps): update actions/checkout action to v3 (#4605)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-21 16:25:34 +01:00
Freddy Boulton
29de12a7b0
Only run client tests on client changes (#4595) 2023-06-21 11:12:22 -04:00
pngwn
d6b6c87c4f
Remove mocks (#4550)
* changes

* changes

* remove mocks

* fix scripts

* tweak port

* add logs

* add logs

* do tests again

* tweaks

* fixes

* regen notebooks

* change workers

* change workers

* try to speed up ci

* try again

* try again

* try again

* try again

* try again

* fix actions

* again

* again

* again

* again

* again

* again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* add names to frontend ci steps
2023-06-19 21:02:03 +01:00
Freddy Boulton
b7010fa0eb
Only run install steps in backend ci if not previously cached (#4517)
* dont install if cache

* Fix

* Fix client cache

* Potential fix

* Change key name

* Fix

* Use python command

* Build front-end in lint job

* Install

* Fix

* Build afterward

* Consolidate lint

* trigger ci

* Fix windows

* Use virtualenv

* New try

* Typo

* Fix typp

* Add full path

* Separate Linux and windows steps

* Typos

* shell

* trigger ci

* Fix

* use command

* Use cache for setup python too

* Separate cache for front-end

* trigger ci

* Add Don't lint on windows

* Add if changes

* Delete restore keys

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-16 15:34:06 -04:00
Freddy Boulton
fbc8e37e02
Conditionally run backend ci (#4515)
* Detect paths

* Trigger CI

* Don't use expression syntax

* Skip typo

* Tweak logic

* Trigger client change

* Trigger backend

* Undo

* Undo

* scripts/tests

* Typo

* workflows for client
2023-06-14 15:12:13 -04:00
Freddy Boulton
afcc20801e
Deprecate python 3.7 (#4484)
* Remove versions from 3.7

* CHANGELOG

* from typing import Literal

* Remaning places 3.7

* Last few spots

* Use 3.8 in lint
2023-06-13 21:52:33 -04:00
Ali Abdalla
f3a64ece33
fix indent (#4404) 2023-06-02 15:46:41 +04:00
Yuichiro Tachibana (Tsuchiya)
1a8eb4deb4
Run pnpm i with pnpm@8.6.0 to re-generate the lock file (#4393) 2023-06-02 17:13:58 +09:00
Yuichiro Tachibana (Tsuchiya)
eac0a81eb7
Fix the Node and pnpm setup actions (#4394) 2023-06-02 17:00:00 +09:00
Ali Abdalla
a43531cc4b
Remove old versioned docs and fix repo classification (#4362)
* remove old versioned docs

* delete versioned docs when new one is created

* ignore website dir in linguist calc

* upload and download versioned docs

* modify github action

* remove gitattributes file

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-01 18:38:53 -07:00
pngwn
f7a8948776
Fix publish (#4240)
* fix npm publish

* fix npm publish
2023-05-16 23:21:40 +01:00
pngwn
4c63a1d29a
fix token (#4208)
* fix token

* add label
2023-05-14 14:14:44 +01:00
pngwn
8df714f32d
Fix npm publish again again (#4195)
* ci typo

* fix

* again

* again

* again
2023-05-12 22:23:24 +01:00
pngwn
aecf8feb1d
Fix npm publish again again (#4193)
* ci typo

* fix

* again

* again
2023-05-12 21:37:10 +01:00
pngwn
402846020e
Fix npm publish again again (#4192)
* ci typo

* fix

* again
2023-05-12 21:22:41 +01:00
pngwn
45fcb0a190
Fix npm publish again again (#4191)
* ci typo

* fix
2023-05-12 21:03:26 +01:00
pngwn
a4748fb1f1
ci typo (#4190) 2023-05-12 20:40:54 +01:00
pngwn
9ff9735d1f
change (#4189) 2023-05-12 20:21:58 +01:00
pngwn
6e28936e1f
update token for npm action (#4187) 2023-05-12 20:00:12 +01:00
pngwn
ef1049e3b2
update ci (#4184) 2023-05-12 18:58:17 +01:00
Ali Abdalla
128668d88a
Fix create version docs action (#4130)
* define version instead of upgrading

* add sleep

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-09 23:52:13 +04:00
Abubakar Abid
dccf68d914
Removing "State" from view API info (#4107)
* wip pr

* update client version

* update space fetcher

* changelog, workflow

* fix not flaky tests

* lint

* v2
2023-05-08 15:47:40 -05:00
1lint
f97b18ec9d
Allow decoding b64 string without header in processing utils (#4031)
* allow decoding b64 string without headers

* install gradio-client in edittable mode

* update GH actions

* add test for decoding headerless b64

* add test for decoding headerless b64 image

* some linting

* fix test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-05-01 18:24:54 -05:00
Aarni Koskela
fa55570b71
CI: Simplify Python CI (#3982)
* CI: use actions/setup-python's native caching

* CI: don't create virtualenvs (CI is run in an isolated context anyway)

* CI: clean up extra directory-creating step

* Changelog

* Update CHANGELOG.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-28 02:57:44 -04:00
Aarni Koskela
37d52a753c
CI: only run backend lints once, not in all test environments (#3960)
* CI: only run backend lints once, not in all test environments

* Add needses
2023-04-26 15:41:06 -04:00
Hyoung-Kyu Song
d8bfa63a38
theme builder example doesn't work for 3.25.0 or later (#3869)
* theme builder example doesn't work for `3.25.0` or later
Fixes #3864

* update CHANGELOG.md

* Fix import order

* Lint

* added test

* add wheel

* wheel

* wheels

* pip

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-04-16 03:22:45 -07:00
Abubakar Abid
c3e239fca0
changelog for client (#3761) 2023-04-12 13:35:34 -07:00
Abubakar Abid
7c1db51d95
changes (#3760) 2023-04-04 15:16:40 -07:00
Abubakar Abid
c4ad09b631
Adds a pypi release action for the gradio python client (#3743)
* release action

* fixes

* name

* Update version.txt

* Update version.txt

* update

* fixes

* version

* rename

* action

* fix token

* custom dir

* fixes

* change password

* revert back to token

* scripts

* remove twine
2023-04-04 13:51:51 -07:00
Freddy Boulton
070b304e09
CI tweaks (#3752) 2023-04-04 14:02:20 -04:00
pngwn
48e8b113f4
node support for js client (#3692)
* bundle js client + gen types

* changeset

* changeset

* fix bugs

* fix deps

* fix deps

* format

* fix ci

* fix types
2023-04-03 14:33:01 +01:00
Freddy Boulton
f73155ed42
Add status for Python Client Jobs (#3645)
* Add status + unit test (flaky) for now

* Install client

* Fix tests

* Lint backend + tests

* Add non-queue test

* Fix name

* Use lock instead

* Add simplify implementation + fix tests

* Restore changes to scripts

* Fix README typo

* Fix CI

* Add two concurrent test
2023-03-29 18:41:12 -04:00
Freddy Boulton
0b91a3363b
Add job for python client ci (#3674)
* Add job + lint

* Fix path

* Fix path

* Fix path

* Checkout

* Add test requirements

* Fix syntax

* Fix test

* Lint

* Fix deps + README

* Move dependency
2023-03-28 18:52:56 -04:00
pngwn
ae4277a9a8
move files (#3605)
* move files

* commit the rest of the files

* fix lockfile

* fix workflow

* fix type errors

* fix tests

* only run ci when certain files change

* run correct test command in ci

* version

* fix pypi script

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 16:12:58 -07:00
space-nuko
e6ea19dee9
Add Windows CI (#3628)
* Add Windows CI

* Update changelog

* fix

* Skip one test on Windows

* Preserve virtualenv path

* Skip another test on Windows

* Make conditional flaky

* Requested changes

* consistent os

* cleanup

* fix test for windows

* remove unnecessary check

* lint

* lint

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-03-27 11:55:59 -07:00
pngwn
57a0aa194f
fix npm publish (#3582)
* fix npm publish

* correct repo name
2023-03-22 17:53:35 +00:00