From 92fc4376463c71ddfcd74de573cb149f9c69342b Mon Sep 17 00:00:00 2001 From: jeafreezy Date: Sun, 27 Sep 2026 11:26:51 +0200 Subject: [PATCH] Run package checks on PRs and releases, not main pushes --- .github/workflows/CI.yml | 3 --- docs/deploy/package-releases.md | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 40f9c52..a008980 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,9 +3,6 @@ name: Package checks on: pull_request: paths: ['crates/**', 'Cargo.toml', 'Cargo.lock', 'scripts/**', '.github/workflows/CI.yml', '.github/workflows/publish.yml'] - push: - branches: [main] - paths: ['crates/**', 'Cargo.toml', 'Cargo.lock', 'scripts/**', '.github/workflows/CI.yml', '.github/workflows/publish.yml'] workflow_dispatch: workflow_call: diff --git a/docs/deploy/package-releases.md b/docs/deploy/package-releases.md index 3ac6cbb..dbd147c 100644 --- a/docs/deploy/package-releases.md +++ b/docs/deploy/package-releases.md @@ -1,5 +1,9 @@ # Package releases +`Package checks` runs on relevant pull requests and can be started manually. +It does not run on pushes to `main`. The release workflow calls it again to build +and test the tagged source before publishing. + `Publish packages` runs when a GitHub release is published. Rust tests, five native wheel builds (Linux x86-64/ARM64, macOS Intel/Apple Silicon, Windows x86-64), installed-wheel tests, and a source-archive rebuild must pass before publication.