From f1a8e3a8e48e4959660e2dfabd83489fd35b1ddc Mon Sep 17 00:00:00 2001 From: Antoine Weisrock Date: Thu, 2 May 2024 19:04:21 +0200 Subject: [PATCH] fix: replace if check with proper matrix exclusion --- .github/workflows/test_python_package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_python_package.yml b/.github/workflows/test_python_package.yml index bc03f30a..3045b69d 100644 --- a/.github/workflows/test_python_package.yml +++ b/.github/workflows/test_python_package.yml @@ -24,10 +24,10 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] # Run on all the supported platforms os: [ubuntu-latest, windows-latest, macos-latest] - # Cannot run for Python 3.7 on macOS as it is no longer supported - if: | - contains(fromJSON('["Linux", "Windows"]'), runner.os) || - contains(fromJSON('["3.8", "3.9", "3.10", "3.11", "3.12"]'), matrix.python-version) + # Cannot run for Python 3.7 on macOS as it is no longer supported + exclude: + - os: macos-latest + python-version: 3.7 steps: # Checkout the repository