From 6203dfa3ef125074d0bc284837b91f5f5f607933 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Mon, 9 Sep 2024 15:29:23 +0200 Subject: [PATCH 1/3] Avoid running entire test matrix in a PR --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04f8b18..afddc2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,16 @@ jobs: fail-fast: false matrix: os: ["ubuntu-22.04", "macos-13", "macos-14"] - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] + is_main_or_release: + - ${{ contains(github.ref, 'main') || startsWith(github.ref, 'refs/tags')}} + exclude: + - is_main_or_release: false + os: "macos-13" + - is_main_or_release: false + python-version: "3.10" + - is_main_or_release: false + python-version: "3.12" steps: - name: Set up Python ${{ matrix.python-version }} From 67ebbfc7cb903215dde25cba288b997ced978b70 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Mon, 9 Sep 2024 15:31:56 +0200 Subject: [PATCH 2/3] Fix indentation --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afddc2f..6676b64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,9 +33,9 @@ jobs: fail-fast: false matrix: os: ["ubuntu-22.04", "macos-13", "macos-14"] - python-version: ["3.10", "3.11", "3.12"] - is_main_or_release: - - ${{ contains(github.ref, 'main') || startsWith(github.ref, 'refs/tags')}} + python-version: ["3.10", "3.11", "3.12"] + is_main_or_release: + - ${{ contains(github.ref, 'main') || startsWith(github.ref, 'refs/tags')}} exclude: - is_main_or_release: false os: "macos-13" From cbfb322e750bfd98714b3117cf9cdce1701b2939 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Mon, 9 Sep 2024 15:33:05 +0200 Subject: [PATCH 3/3] Fix indentation again --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6676b64..24a0be1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,13 +36,13 @@ jobs: python-version: ["3.10", "3.11", "3.12"] is_main_or_release: - ${{ contains(github.ref, 'main') || startsWith(github.ref, 'refs/tags')}} - exclude: - - is_main_or_release: false - os: "macos-13" - - is_main_or_release: false - python-version: "3.10" - - is_main_or_release: false - python-version: "3.12" + exclude: + - is_main_or_release: false + os: "macos-13" + - is_main_or_release: false + python-version: "3.10" + - is_main_or_release: false + python-version: "3.12" steps: - name: Set up Python ${{ matrix.python-version }}