Skip to content

Commit

Permalink
undo main merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoodkhan82 committed Aug 7, 2024
1 parent 7dae767 commit e2a26e6
Show file tree
Hide file tree
Showing 20 changed files with 301 additions and 80 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-planets-fall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Fix `show_progress` in `gr.Interface`
5 changes: 5 additions & 0 deletions .github/workflows/delete-stale-spaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ on:
required: true
default: "7"

permissions: {}

jobs:
delete-old-spaces:
permissions:
contents: read
environment: deploy_spaces
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/generate-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ concurrency:
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
cancel-in-progress: true

permissions: {}

jobs:
get-pr:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: read
if: github.event.workflow_run.conclusion == 'success'
outputs:
found_pr: ${{ steps.pr_details.outputs.found_pr }}
Expand All @@ -38,6 +42,8 @@ jobs:
pr_number: ${{ needs.get-pr.outputs.pr_number }}
message: changes~pending~null
version:
permissions:
contents: read
environment: changeset
name: version
needs: get-pr
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/previews-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
name: "changes"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
should_run: ${{ steps.changes.outputs.should_run }}
sha: ${{ steps.changes.outputs.sha }}
Expand All @@ -29,6 +34,8 @@ jobs:
filter: "visual"
token: ${{ secrets.GITHUB_TOKEN }}
build:
permissions:
contents: read
name: "previews-build"
runs-on: ubuntu-22.04
needs: changes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/previews-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
comment-spaces-start:
needs: changes
uses: "./.github/workflows/comment-queue.yml"
if: ${{github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.should_run == 'true' }}
if: ${{ needs.changes.outputs.should_run == 'true' }}
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
comment-spaces-failure:
uses: "./.github/workflows/comment-queue.yml"
needs: [deploy, changes]
if: always() && github.event.workflow_run.conclusion == 'success' && needs.deploy.result == 'failure' && needs.changes.outputs.should_run == 'true'
if: always() && needs.deploy.result == 'failure' && needs.changes.outputs.should_run == 'true'
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/storybook-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
Expand All @@ -33,6 +38,8 @@ jobs:
filter: "visual"
token: ${{ secrets.GITHUB_TOKEN }}
build:
permissions:
contents: read
name: :storybook-build
runs-on: ubuntu-22.04
needs: changes
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
name: "changes"
Expand Down Expand Up @@ -39,17 +41,20 @@ jobs:
comment-chromatic-start:
uses: "./.github/workflows/comment-queue.yml"
needs: changes
if: ${{ needs.changes.outputs.should_run == 'true' }}
if: needs.changes.outputs.should_run == 'true' || contains(needs.changes.outputs.labels, 'no-visual-update')
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
pr_number: ${{ needs.changes.outputs.pr_number }}
message: |
storybook~pending~null
update-status:
permissions:
actions: read
statuses: write
runs-on: ubuntu-latest
needs: changes
if: ${{ github.event.workflow_run.conclusion == 'success' && (needs.changes.outputs.should_run == 'false' || contains(needs.changes.outputs.labels, 'no-visual-update')) }}
if: needs.changes.outputs.should_run == 'false' || contains(needs.changes.outputs.labels, 'no-visual-update')
steps:
- name: update status
uses: gradio-app/github/actions/set-commit-status@main
Expand All @@ -59,18 +64,19 @@ jobs:
name: "UI Tests"
run_id: ${{ needs.changes.outputs.run_id }}
deploy:
permissions:
actions: read
contents: read
environment: storybook
name: "storybook-deploy"
needs: changes
if: ${{ github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.should_run == 'true' && github.repository == 'gradio-app/gradio' && !contains(needs.changes.outputs.labels, 'no-visual-update') }}
if: needs.changes.outputs.should_run == 'true' && github.repository == 'gradio-app/gradio' && !contains(needs.changes.outputs.labels, 'no-visual-update')
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.publish-chromatic.outputs.changeCount }}
errors: ${{ steps.publish-chromatic.outputs.errorCount }}
storybook_url: ${{ steps.publish-chromatic.outputs.storybookUrl }}
build_url: ${{ steps.publish-chromatic.outputs.buildUrl }}
permissions:
actions: read
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -104,14 +110,14 @@ jobs:
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
pr_number: ${{ github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.pr_number }}
pr_number: ${{ needs.changes.outputs.pr_number }}
message: |
storybook~success~${{ needs.deploy.outputs.storybook_url }}
comment-chromatic-fail:
uses: "./.github/workflows/comment-queue.yml"
needs: [deploy, changes]
if: always() && github.event.workflow_run.conclusion == 'success' && needs.deploy.result == 'failure'
if: always() && needs.deploy.result == 'failure'
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-functional-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
Expand All @@ -29,6 +34,8 @@ jobs:
filter: "functional"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "functional-test-lite"
runs-on: ubuntu-latest
needs: changes
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
Expand All @@ -29,6 +34,8 @@ jobs:
filter: "functional"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "functional-test"
runs-on: ubuntu-latest
needs: changes
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
test:
permissions:
contents: read
name: "hygiene-test"
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ env:
NODE_OPTIONS: "--max-old-space-size=4096"
HF_TOKEN: ${{ vars.HF_TOKEN }}

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
Expand All @@ -33,6 +38,8 @@ jobs:
filter: "gradio"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "test-${{ matrix.os }}-${{ matrix.test-type == 'flaky' && 'flaky' || 'not-flaky'}}"
needs: changes
if: needs.changes.outputs.should_run == 'true'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
Expand All @@ -34,6 +39,8 @@ jobs:
filter: "js"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: js-test
runs-on: ubuntu-22.04
needs: changes
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trigger-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
issue_comment:
types: [edited]

permissions: {}

jobs:
changeset:
permissions: write-all
runs-on: ubuntu-22.04
if: github.event.sender.login != 'gradio-pr-bot'
steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/update-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: "${{ github.event.workflow_run.id}}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
name: "changes"
Expand All @@ -36,6 +38,10 @@ jobs:
with:
path: output.json
update-status:
permissions:
actions: read
statuses: write
contents: read
environment: commit_status
runs-on: ubuntu-latest
needs: changes
Expand Down
Loading

0 comments on commit e2a26e6

Please sign in to comment.