diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index f546cea029..cd8a273fb5 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -55,6 +55,7 @@ jobs: python-version: ["3.8"] 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' }} runs-on: ${{ matrix.os }} continue-on-error: true steps: @@ -149,6 +150,7 @@ jobs: python-version: ["3.8"] 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' }} runs-on: ${{ matrix.os }} continue-on-error: true steps: diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 1716bc0ba5..d29e9fd6b8 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -47,6 +47,12 @@ jobs: env: PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }} GITHUB_TOKEN: ${{ secrets.GRADIO_PAT }} + - name: add label to run flaky tests + if: ${{ steps.changesets.outputs.pullRequestNumber != '' && steps.changesets.outputs.pullRequestNumber != 'undefined' }} + run: gh pr edit "$PR_NUMBER" --add-label "flaky-tests" + env: + PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }} + 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"