diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 223062a5..62a354b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ name: CI on: pull_request: + # A draft runs nothing; marking it ready starts the run. + types: [opened, synchronize, reopened, ready_for_review] push: branches: [main] @@ -27,6 +29,7 @@ env: jobs: check: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest timeout-minutes: 60 defaults: diff --git a/AGENTS.md b/AGENTS.md index 18d95c8f..99aabfae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,4 +47,5 @@ cargo clippy --workspace --all-features --all-targets ## Process Branch from `origin/main`, open a PR into `main` with a conventional -title. GPL-3.0-or-later; a new crate inherits `license.workspace = true`. +title. CI runs on ready PRs only (skipped on a draft): to get checks, mark +the PR ready (`gh pr ready`); it runs then and on every push after. GPL-3.0-or-later; a new crate inherits `license.workspace = true`.