From 14e0105ece041fa9e39a03d325a55313f0c8a09e Mon Sep 17 00:00:00 2001 From: J2-D2-3PO <188380414+J2-D2-3PO@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:45:20 -0700 Subject: [PATCH] perf(docs): Disable tests on docs that don't apply to docs --- .github/workflows/bump_version.yaml | 6 ++++++ .github/workflows/notify-wandb-core.yaml | 5 +++++ .github/workflows/test.yaml | 6 ++++++ .github/workflows/wandb-core-updated.yaml | 6 ++++++ .github/workflows/weave-node-tests.yaml | 5 +++++ 5 files changed, 28 insertions(+) diff --git a/.github/workflows/bump_version.yaml b/.github/workflows/bump_version.yaml index d151d225026..828b19a3fee 100644 --- a/.github/workflows/bump_version.yaml +++ b/.github/workflows/bump_version.yaml @@ -9,6 +9,12 @@ name: bump-python-sdk-version on: workflow_dispatch: + push: + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: build-assets: diff --git a/.github/workflows/notify-wandb-core.yaml b/.github/workflows/notify-wandb-core.yaml index 3a1fa818d34..9e98b49f5a0 100644 --- a/.github/workflows/notify-wandb-core.yaml +++ b/.github/workflows/notify-wandb-core.yaml @@ -7,6 +7,11 @@ on: push: branches: - '**' + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' workflow_dispatch: jobs: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 295b6ef8922..03d44ffc23e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,6 +10,11 @@ name: test on: push: + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: check-which-tests-to-run: @@ -195,6 +200,7 @@ jobs: name: Trace docs timeout-minutes: 10 runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' && (github.event.before == 'docs/**' || github.event.commits | contains('docs')) }} steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/wandb-core-updated.yaml b/.github/workflows/wandb-core-updated.yaml index 2224103ae7f..8422f68adfb 100644 --- a/.github/workflows/wandb-core-updated.yaml +++ b/.github/workflows/wandb-core-updated.yaml @@ -5,6 +5,12 @@ on: types: - core-updated workflow_dispatch: + push: + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: update-frontend: diff --git a/.github/workflows/weave-node-tests.yaml b/.github/workflows/weave-node-tests.yaml index ad401503879..4d6c6515595 100644 --- a/.github/workflows/weave-node-tests.yaml +++ b/.github/workflows/weave-node-tests.yaml @@ -2,6 +2,11 @@ name: Node.js Tests on: push: + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: test: