From 99f7fbc170ee7edfc31cbfe0e616fbe7ff07786c Mon Sep 17 00:00:00 2001 From: DB Lee Date: Tue, 24 Mar 2026 10:58:59 -0700 Subject: [PATCH] ci: remove main from PR triggers to prevent duplicate CI runs PRs to main only come from release/* branches, which are already fully validated by the staging pipeline. Running CI again on the same code wastes CI minutes (28 duplicate jobs per PR). Removes 'main' from the pull_request.branches list in ci.yml. --- .github/workflows/ci.yml | 2 +- docs/release-process.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf80a66..fad45d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ on: push: branches: [develop] pull_request: - branches: [main, develop] + branches: [develop] permissions: contents: read diff --git a/docs/release-process.md b/docs/release-process.md index 35a8b20..2c91b7a 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -734,13 +734,13 @@ All workflow files are in `.github/workflows/`: ### `ci.yml` — Continuous Integration ``` -Trigger: push to develop, PR to main or develop +Trigger: push to develop, PR to develop Flow: lint → test (matrix) → coverage + on develop push: publish-dev → verify-dev (TestPyPI) Purpose: Quality gate for all code changes; auto-publish dev builds ``` -Key detail: `publish-dev` and `verify-dev` only run on pushes to `develop` (not PRs). Every merge to develop produces a dev version on TestPyPI (e.g. `0.1.3.dev12`) via setuptools-scm. +Key detail: `publish-dev` and `verify-dev` only run on pushes to `develop` (not PRs). Every merge to develop produces a dev version on TestPyPI (e.g. `0.1.3.dev12`) via setuptools-scm. PRs to `main` are not covered by CI because they come from `release/*` branches which are already validated by the staging pipeline. ### `_build.yml` — Reusable Build