This commit is contained in:
pngwn 2024-02-01 01:06:39 +00:00 committed by GitHub
parent 4cfd8dcde8
commit d1b5c7a946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 5 deletions

View File

@ -28,6 +28,7 @@ jobs:
source_branch: ${{ steps.changes.outputs.source_branch }}
source_repo: ${{ steps.changes.outputs.source_repo }}
merge_sha: ${{ steps.changes.outputs.merge_sha }}
labels: ${{ steps.changes.outputs.labels }}
steps:
- uses: actions/checkout@v3
- uses: "./.github/actions/changes"
@ -45,8 +46,8 @@ jobs:
os: ["ubuntu-latest", "windows-latest"]
test-type: ["not flaky", "flaky"]
exclude:
- os: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'windows-tests') && 'dummy' || 'windows-latest' }}
- test-type: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'flaky-tests') && 'dummy' || 'flaky' }}
- os: ${{ github.event.workflow_run.event == 'pull_request' && contains( needs.changes.outputs.labels, 'windows-tests') && 'dummy' || 'windows-latest' }}
- test-type: ${{ github.event.workflow_run.event == 'pull_request' && contains( needs.changes.outputs.labels, 'flaky-tests') && 'dummy' || 'flaky' }}
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:

View File

@ -7,11 +7,11 @@ on:
issue_comment:
types: [edited]
jobs:
checks:
changeset:
permissions: write-all
name: static checks
runs-on: ubuntu-22.04
if: github.event.sender.login != 'gradio-pr-bot'
steps:
- run: echo "Requesting checks"
- run: echo "Requesting changeset"

17
.github/workflows/trigger-checks.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: trigger
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
push:
branches:
- main
jobs:
checks:
permissions: write-all
runs-on: ubuntu-22.04
if: github.event.sender.login != 'gradio-pr-bot'
steps:
- run: echo "Requesting checks"