From 97512da58e2afe6ee068e37eb258867ba63e1c61 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 7 Oct 2026 22:11:58 -0500 Subject: [PATCH] CI: run once per change, and skip documentation-only changes --- .github/workflows/commit-formatting.yml | 5 ++++- .github/workflows/ruff.yml | 12 +++++++++++- .github/workflows/tests.yml | 12 +++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commit-formatting.yml b/.github/workflows/commit-formatting.yml index 76a7786ca..ed1d78253 100644 --- a/.github/workflows/commit-formatting.yml +++ b/.github/workflows/commit-formatting.yml @@ -1,6 +1,9 @@ name: Check commit message formatting -on: [push, pull_request] +on: + push: + branches: [PyDevices] + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 98b34de69..998843996 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,6 +1,16 @@ # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python name: Python code lint and formatting with ruff -on: [push, pull_request] +# Documentation-only changes can't change this result, so they don't run it. +on: + push: + branches: [PyDevices] + paths-ignore: + - '**.md' + - 'LICENSE' + pull_request: + paths-ignore: + - '**.md' + - 'LICENSE' jobs: ruff: # Synced PyDevices packages are linted in their canonical source repos. diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e503509e..a4396acdc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,16 @@ name: Package tests -on: [push, pull_request] +# Documentation-only changes can't change this result, so they don't run it. +on: + push: + branches: [PyDevices] + paths-ignore: + - '**.md' + - 'LICENSE' + pull_request: + paths-ignore: + - '**.md' + - 'LICENSE' jobs: build: