mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
parent
46f2ffc99d
commit
22188e922b
2
.github/actions/install-all-deps/action.yml
vendored
2
.github/actions/install-all-deps/action.yml
vendored
@ -85,7 +85,7 @@ runs:
|
||||
python -m pip install -r test/requirements.txt
|
||||
python -m pip install -r client/python/test/requirements.txt
|
||||
- name: install-frontend
|
||||
uses: "./.github/actions/install-frontend-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-frontend-deps@main""
|
||||
with:
|
||||
always_install_pnpm: ${{ inputs.always_install_pnpm }}
|
||||
node_auth_token: ${{ inputs.node_auth_token }}
|
||||
|
10
.github/workflows/deploy+test-visual.yml
vendored
10
.github/workflows/deploy+test-visual.yml
vendored
@ -11,7 +11,7 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -27,11 +27,15 @@ jobs:
|
||||
labels: ${{ steps.changes.outputs.labels }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "visual"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
|
||||
comment-chromatic-start:
|
||||
uses: "./.github/workflows/comment-queue.yml"
|
||||
@ -61,7 +65,7 @@ jobs:
|
||||
ref: ${{ needs.changes.outputs.sha }}
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
uses: "./.github/actions/install-all-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: 'true'
|
||||
|
14
.github/workflows/deploy-spaces.yml
vendored
14
.github/workflows/deploy-spaces.yml
vendored
@ -9,7 +9,7 @@ on:
|
||||
permissions:
|
||||
statuses: write
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -25,19 +25,24 @@ jobs:
|
||||
merge_sha: ${{ steps.changes.outputs.merge_sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "functional"
|
||||
name: "deploy / spaces"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit_status: false
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
comment-spaces-start:
|
||||
needs: changes
|
||||
uses: "./.github/workflows/comment-queue.yml"
|
||||
secrets:
|
||||
gh_token: ${{ secrets.COMMENT_TOKEN }}
|
||||
with:
|
||||
pr_number: ${{ github.event.pull_request.number }}
|
||||
pr_number: ${{ needs.changes.outputs.pr_number }}
|
||||
message: spaces~pending~null
|
||||
deploy-spaces:
|
||||
outputs:
|
||||
@ -107,7 +112,7 @@ jobs:
|
||||
echo "SPACE_URL=$(cat url.txt)" >> $GITHUB_OUTPUT
|
||||
- name: Upload Website Demos
|
||||
if: >
|
||||
github.event.workflow_run.event == 'workflow_dispatch' &&
|
||||
github.event == 'workflow_dispatch' &&
|
||||
github.event.workflow_run.conclusion == 'success'
|
||||
id: upload-website-demos
|
||||
run: |
|
||||
@ -118,7 +123,6 @@ jobs:
|
||||
uses: "./.github/workflows/comment-queue.yml"
|
||||
needs: [deploy-spaces, changes]
|
||||
if: >
|
||||
github.event_name == 'pull_request' ||
|
||||
github.event.workflow_run.event == 'pull_request' &&
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
needs.deploy-spaces.result == 'success'
|
||||
|
10
.github/workflows/deploy-website.yml
vendored
10
.github/workflows/deploy-website.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
@ -32,12 +32,16 @@ jobs:
|
||||
found_pr: ${{ steps.changes.outputs.found_pr }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "website"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit_status: false
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
comment-deploy-start:
|
||||
needs: changes
|
||||
uses: "./.github/workflows/comment-queue.yml"
|
||||
@ -59,7 +63,7 @@ jobs:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
uses: "./.github/actions/install-all-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
skip_build: true
|
||||
|
6
.github/workflows/generate-changeset.yml
vendored
6
.github/workflows/generate-changeset.yml
vendored
@ -10,7 +10,7 @@ env:
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -28,6 +28,10 @@ jobs:
|
||||
uses: gradio-app/github/actions/find-pr@main
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
comment-changes-start:
|
||||
uses: "./.github/workflows/comment-queue.yml"
|
||||
needs: get-pr
|
||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- name: install dependencies
|
||||
uses: "./.github/actions/install-all-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
node_auth_token: ${{ secrets.NPM_TOKEN }}
|
||||
|
9
.github/workflows/test-functional.yml
vendored
9
.github/workflows/test-functional.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -26,11 +26,14 @@ jobs:
|
||||
source_repo: ${{ steps.changes.outputs.source_repo }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "functional"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
test-functional:
|
||||
name: "test-functional"
|
||||
@ -45,7 +48,7 @@ jobs:
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
id: install_deps
|
||||
uses: "./.github/actions/install-all-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
- name: install outbreak_forecast dependencies
|
||||
|
8
.github/workflows/test-hygiene.yml
vendored
8
.github/workflows/test-hygiene.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -26,11 +26,15 @@ jobs:
|
||||
merge_sha: ${{ steps.changes.outputs.merge_sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "all"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
test-hygiene:
|
||||
name: "test-hygiene"
|
||||
runs-on: ubuntu-latest
|
||||
|
10
.github/workflows/test-python.yml
vendored
10
.github/workflows/test-python.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
@ -31,12 +31,16 @@ jobs:
|
||||
labels: ${{ steps.changes.outputs.labels }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "gradio"
|
||||
name: "test / python / linux"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
test-python:
|
||||
needs: [changes]
|
||||
if: needs.changes.outputs.should_run == 'true'
|
||||
@ -57,7 +61,7 @@ jobs:
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
id: install_deps
|
||||
uses: "./.github/actions/install-all-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
with:
|
||||
python_version: "3.8"
|
||||
os: ${{ matrix.os }}
|
||||
|
8
.github/workflows/tests-js.yml
vendored
8
.github/workflows/tests-js.yml
vendored
@ -17,7 +17,7 @@ env:
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@ -33,14 +33,14 @@ jobs:
|
||||
source_repo: ${{ steps.changes.outputs.source_repo }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: "./.github/actions/changes"
|
||||
- uses: "@gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
type: "js"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: echo github context
|
||||
if: always()
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
|
||||
test-js:
|
||||
needs: changes
|
||||
@ -53,7 +53,7 @@ jobs:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
uses: "./.github/actions/install-frontend-deps"
|
||||
uses: "@gradio-app/gradio/.github/actions/install-frontend-deps@main""
|
||||
with:
|
||||
always_install_pnpm: true
|
||||
- name: build client
|
||||
|
Loading…
x
Reference in New Issue
Block a user