From ba4958f773b27c3532eb29cf3fe05508ad2144ff Mon Sep 17 00:00:00 2001 From: abacus_fixer Date: Sat, 17 Oct 2026 20:44:37 +0800 Subject: [PATCH] CI: skip build/test workflows on docs-only pull requests Add paths-ignore to the pull_request triggers of the six heavy build and test workflows (CMake builds, Makefile build, integration/unit tests, CUDA build+test, PyTest, ASE plugin test). Pull requests that only touch docs/**, Markdown files, or .coderabbit.yaml no longer spend runner time on compilation and physics tests that cannot be affected by such changes. Motivated by docs-only PRs such as #8148, which triggered 14 full build/test runs. Scope notes: - push triggers (including the develop safety-net runs) are unchanged. - agent_governance.yml is deliberately untouched: AGENTS.md changes are its primary input and must keep running. - Workflow file changes themselves are not ignored, so CI changes still trigger CI. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ase_plugin_test.yml | 4 ++++ .github/workflows/build_test_cmake.yml | 4 ++++ .github/workflows/build_test_makefile.yml | 4 ++++ .github/workflows/cuda.yml | 4 ++++ .github/workflows/pytest.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/.github/workflows/ase_plugin_test.yml b/.github/workflows/ase_plugin_test.yml index 822afcd957c..a4e7b4d8bc6 100644 --- a/.github/workflows/ase_plugin_test.yml +++ b/.github/workflows/ase_plugin_test.yml @@ -2,6 +2,10 @@ name: Atomic Simulation Environment (ASE) Plugin Test on: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' defaults: run: diff --git a/.github/workflows/build_test_cmake.yml b/.github/workflows/build_test_cmake.yml index ed760753f58..038d831901a 100644 --- a/.github/workflows/build_test_cmake.yml +++ b/.github/workflows/build_test_cmake.yml @@ -2,6 +2,10 @@ name: Build Test on: push: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' defaults: run: diff --git a/.github/workflows/build_test_makefile.yml b/.github/workflows/build_test_makefile.yml index bb6f25c206d..08d3132b5de 100644 --- a/.github/workflows/build_test_makefile.yml +++ b/.github/workflows/build_test_makefile.yml @@ -2,6 +2,10 @@ name: Build Test on: push: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' defaults: run: diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 68f6e2347fd..8f5511884b6 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -3,6 +3,10 @@ name: CUDA Test on: workflow_dispatch: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' push: branches: - develop diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index fd5dd059db4..d2b84c6cbf6 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -2,6 +2,10 @@ name: Pyabacus Build and Test on: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' defaults: run: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87bf922499b..f9b0c72b674 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,10 @@ name: Integration Test and Unit Test on: pull_request: + paths-ignore: + - 'docs/**' + - '**/*.md' + - '.coderabbit.yaml' push: branches: - develop