This commit is contained in:
pngwn 2024-10-09 20:54:59 +01:00 committed by GitHub
parent f295f7d31a
commit 7e23b7ee3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View File

@ -54,15 +54,15 @@ runs:
run: |
python -m pip install --upgrade virtualenv
python -m virtualenv venv
- uses: actions/cache@v4
id: cache
with:
path: |
venv/*
client/python/venv
restore-keys: |
gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-
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' || ''}}"
# - uses: actions/cache@v4
# id: cache
# with:
# path: |
# venv/*
# client/python/venv
# restore-keys: |
# gradio-lib-${{inputs.python_version}}-${{inputs.os}}-latest-pip-
# 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' || ''}}"
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@583042d32dd1cabb8bd09df03bde06080da5c87c # @v2
- name: Install test dependencies

View File

@ -12,12 +12,12 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/cache@v4
id: frontend-cache
with:
path: |
gradio/templates/*
key: gradio-lib-front-end-${{ hashFiles('js/**', 'client/js/**')}}
# - uses: actions/cache@v4
# id: frontend-cache
# with:
# path: |
# gradio/templates/*
# key: gradio-lib-front-end-${{ hashFiles('js/**', 'client/js/**')}}
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # @v4
with: