File tree 2 files changed +17
-19
lines changed
2 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -54,20 +54,19 @@ runs:
54
54
run : |
55
55
python -m pip install --upgrade virtualenv
56
56
python -m virtualenv venv
57
- # - uses: actions/cache@v4
58
- # id: cache
59
- # with:
60
- # path: |
61
- # venv/*
62
- # client/python/venv
63
- # restore-keys: |
64
- # gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-
65
- # key: "gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-${{ hashFiles('client/python/requirements.txt') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test/requirements.txt') }}-${{ hashFiles('client/python/test/requirements.txt') }}${{ inputs.test == 'true' && '-test' || ''}}"
57
+ - uses : actions/cache@v4
58
+ id : cache
59
+ with :
60
+ path : |
61
+ venv/*
62
+ client/python/venv
63
+ restore-keys : |
64
+ gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-
65
+ key : " gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-${{ hashFiles('client/python/requirements.txt') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('test/requirements.txt') }}-${{ hashFiles('client/python/test/requirements.txt') }}${{ inputs.test == 'true' && '-test' || ''}}"
66
66
- name : Install ffmpeg
67
67
uses : FedericoCarboni/setup-ffmpeg@583042d32dd1cabb8bd09df03bde06080da5c87c # @v2
68
68
- name : Install test dependencies
69
- if : inputs.test == 'true'
70
- # && steps.cache.outputs.cache-hit != 'true'
69
+ if : inputs.test == 'true' && steps.cache.outputs.cache-hit != 'true'
71
70
shell : bash
72
71
run : |
73
72
. ${{ env.VENV_ACTIVATE }}
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ inputs:
12
12
runs :
13
13
using : " composite"
14
14
steps :
15
- # - uses: actions/cache@v4
16
- # id: frontend-cache
17
- # with:
18
- # path: |
19
- # gradio/templates/*
20
- # key: gradio-lib-front-end-${{ hashFiles('js/**', 'client/js/**')}}
15
+ - uses : actions/cache@v4
16
+ id : frontend-cache
17
+ with :
18
+ path : |
19
+ gradio/templates/*
20
+ key : gradio-lib-front-end-${{ hashFiles('js/**', 'client/js/**')}}
21
21
- name : Install pnpm
22
22
uses : pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # @v4
23
23
with :
34
34
shell : bash
35
35
run : pnpm css
36
36
- name : Build frontend
37
- if : inputs.skip_build == 'false'
38
- # && steps.frontend-cache.outputs.cache-hit != 'true'
37
+ if : inputs.skip_build == 'false' && steps.frontend-cache.outputs.cache-hit != 'true'
39
38
shell : bash
40
39
run : pnpm build
41
40
- name : generate types
You can’t perform that action at this time.
0 commit comments