Skip to content

Commit

Permalink
[WIP] Show gradio files
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Mar 27, 2024
1 parent e15fef2 commit aef053f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions .github/actions/install-all-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'install all deps'
description: 'Install all deps'

inputs:
always_install_pnpm:
always_install_pnpm:
description: 'Dictates whether or not we should install pnpm & dependencies, regardless of the cache'
default: 'false'
node_auth_token:
Expand Down Expand Up @@ -58,6 +58,9 @@ runs:
client/python/requirements.txt
requirements.txt
test/requirements.txt
- name: "[tmp] show files"
run: tree gradio
shell: bash
- name: Create env
shell: bash
run: |
Expand All @@ -72,21 +75,33 @@ runs:
restore-keys: |
gradio-lib-${{inputs.os}}-latest-pip-
key: "gradio-lib-${{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: "[tmp] show files"
run: tree gradio
shell: bash
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
- name: "[tmp] show files"
run: tree gradio
shell: bash
- name: Install test dependencies
if: inputs.test == 'true' && steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
. ${{ env.VENV_ACTIVATE }}
python -m pip install -r test/requirements.txt
python -m pip install -r client/python/test/requirements.txt
- name: "[tmp] show files"
run: tree gradio
shell: bash
- name: Install Gradio and Client Libraries Locally (Linux)
shell: bash
run: |
. ${{ env.VENV_ACTIVATE }}
python -m pip install -e client/python
python -m pip install -e client/python
python -m pip install -e ".[oauth]"
- name: "[tmp] show files"
run: tree gradio
shell: bash
- name: install-frontend
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
with:
Expand All @@ -95,6 +110,9 @@ runs:
npm_token: ${{ inputs.npm_token }}
skip_build: ${{ inputs.skip_build }}
build_lite: ${{ inputs.build_lite }}
- name: "[tmp] show files"
run: tree gradio
shell: bash
- name: generate json
shell: bash
if: inputs.os == 'ubuntu-latest'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: "[tmp] show files"
run: tree gradio
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
uses: "./.github/actions/install-all-deps"
with:
always_install_pnpm: true
node_auth_token: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit aef053f

Please sign in to comment.