From 889f9dc1f15ca9f9fa1024169a626c8621fc71f7 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 12 Aug 2025 12:52:42 +0100 Subject: [PATCH] Specify branches for test CI runs --- .github/workflows/ci.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b1a1a7d9..a7893e71 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,11 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -14,7 +19,8 @@ jobs: matrix: python-version: ["3.11", "3.12", "3.13"] # macos-13 is an intel runner, macos-14 is an arm64 runner - platform: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-13, macos-14] + platform: + [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-13, macos-14] defaults: run: