Skip to content

Commit 8168cb3

Browse files
committed
Make the required percy/dash-table-test "succeed" when dash table tests are skipped
1 parent 3f5f2cd commit 8168cb3

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,30 @@ jobs:
895895
env:
896896
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
897897

898+
report-table-percy-skipped:
899+
name: Report Percy Table Skipped
900+
needs: table-visual-test
901+
runs-on: ubuntu-latest
902+
if: |
903+
always() &&
904+
github.event_name == 'pull_request' &&
905+
needs.table-visual-test.result == 'skipped'
906+
permissions:
907+
statuses: write
908+
steps:
909+
- name: Post success status for percy/dash-table-test
910+
uses: actions/github-script@v7
911+
with:
912+
script: |
913+
await github.rest.repos.createCommitStatus({
914+
owner: context.repo.owner,
915+
repo: context.repo.repo,
916+
sha: context.payload.pull_request.head.sha,
917+
state: 'success',
918+
context: 'percy/dash-table-test',
919+
description: 'Skipped — no dash-table changes',
920+
});
921+
898922
test-report:
899923
name: Consolidated Test Report
900924
needs: [lint-unit, test-main, dcc-test, html-test, table-server, background-callbacks, test-typing]

0 commit comments

Comments
 (0)