mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Makes the Windows tests only run on the release PR (#6380)
* format * ci * exclude logic * add changeset * test * delete changeset * tweaks * remove edited --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
200237d73c
commit
c55f927f5b
5
.github/workflows/backend.yml
vendored
5
.github/workflows/backend.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, labeled, unlabeled]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: backend-${{ github.ref }}-${{ github.event_name == 'push' || github.event.inputs.fire != null }}
|
group: backend-${{ github.ref }}-${{ github.event_name == 'push' || github.event.inputs.fire != null }}
|
||||||
@ -51,6 +52,8 @@ jobs:
|
|||||||
os: ["ubuntu-latest", "windows-latest"]
|
os: ["ubuntu-latest", "windows-latest"]
|
||||||
test-type: ["not flaky", "flaky"]
|
test-type: ["not flaky", "flaky"]
|
||||||
python-version: ["3.8"]
|
python-version: ["3.8"]
|
||||||
|
exclude:
|
||||||
|
- os: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'windows-tests') && 'dummy' || 'windows-latest' }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
@ -143,6 +146,8 @@ jobs:
|
|||||||
os: ["ubuntu-latest", "windows-latest"]
|
os: ["ubuntu-latest", "windows-latest"]
|
||||||
test-type: ["not flaky", "flaky"]
|
test-type: ["not flaky", "flaky"]
|
||||||
python-version: ["3.8"]
|
python-version: ["3.8"]
|
||||||
|
exclude:
|
||||||
|
- os: ${{ github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'windows-tests') && 'dummy' || 'windows-latest' }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
|
1
.github/workflows/build-pr.yml
vendored
1
.github/workflows/build-pr.yml
vendored
@ -5,7 +5,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- v4
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment-spaces-start:
|
comment-spaces-start:
|
||||||
|
7
.github/workflows/publish-npm.yml
vendored
7
.github/workflows/publish-npm.yml
vendored
@ -3,7 +3,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- v4
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
@ -45,6 +44,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
|
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GRADIO_PAT }}
|
GITHUB_TOKEN: ${{ secrets.GRADIO_PAT }}
|
||||||
|
- name: add label to run backend tests on Windows
|
||||||
|
if: ${{ steps.changesets.outputs.pullRequestNumber != '' && steps.changesets.outputs.pullRequestNumber != 'undefined' }}
|
||||||
|
run: gh pr edit "$PR_NUMBER" --add-label "windows-tests"
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GRADIO_PAT }}
|
||||||
- name: publish to pypi
|
- name: publish to pypi
|
||||||
if: steps.changesets.outputs.hasChangesets != 'true'
|
if: steps.changesets.outputs.hasChangesets != 'true'
|
||||||
uses: "gradio-app/github/actions/publish-pypi@main"
|
uses: "gradio-app/github/actions/publish-pypi@main"
|
||||||
|
1
.github/workflows/trigger-changeset.yml
vendored
1
.github/workflows/trigger-changeset.yml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
types: [opened, synchronize, reopened, edited, labeled, unlabeled]
|
types: [opened, synchronize, reopened, edited, labeled, unlabeled]
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- v4
|
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [edited]
|
types: [edited]
|
||||||
|
|
||||||
|
2
.github/workflows/ui.yml
vendored
2
.github/workflows/ui.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: deploy json to aws
|
- name: deploy json to aws
|
||||||
if: steps.pr_details.outputs.source_branch == 'changeset-release/main' || steps.pr_details.outputs.source_branch == 'changeset-release/v4'
|
if: steps.pr_details.outputs.source_branch == 'changeset-release/main'
|
||||||
run: |
|
run: |
|
||||||
export AWS_ACCESS_KEY_ID=${{ secrets.AWSACCESSKEYID }}
|
export AWS_ACCESS_KEY_ID=${{ secrets.AWSACCESSKEYID }}
|
||||||
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWSSECRETKEY }}
|
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWSSECRETKEY }}
|
||||||
|
Loading…
Reference in New Issue
Block a user