Skip to content

Commit

Permalink
fix: replace if check with proper matrix exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
WeisLeDocto committed May 2, 2024
1 parent 618d6a7 commit f1a8e3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1a8e3a

Please sign in to comment.