mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content""
This reverts commit 32154f3bb1
.
This commit is contained in:
parent
32154f3bb1
commit
204075e190
41
.github/workflows/test-functional.yml
vendored
41
.github/workflows/test-functional.yml
vendored
@ -1,17 +1,52 @@
|
||||
name: "test / functional"
|
||||
|
||||
on:
|
||||
pull_request
|
||||
workflow_run:
|
||||
workflows: ["trigger"]
|
||||
types:
|
||||
- requested
|
||||
|
||||
permissions:
|
||||
statuses: write
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test-functional:
|
||||
name: "test-functional"
|
||||
changes:
|
||||
name: "changes"
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should_run: ${{ steps.changes.outputs.should_run }}
|
||||
sha: ${{ steps.changes.outputs.sha }}
|
||||
merge_sha: ${{ steps.changes.outputs.merge_sha }}
|
||||
pr_number: ${{ steps.changes.outputs.pr_number }}
|
||||
source_branch: ${{ steps.changes.outputs.source_branch }}
|
||||
source_repo: ${{ steps.changes.outputs.source_repo }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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"
|
||||
needs: changes
|
||||
if: needs.changes.outputs.should_run == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
- name: install dependencies
|
||||
id: install_deps
|
||||
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
|
||||
|
Loading…
Reference in New Issue
Block a user