Skip to content

Commit

Permalink
Avoid running entire test matrix in a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Sep 9, 2024
1 parent 305a03e commit 6203dfa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6203dfa

Please sign in to comment.