Skip to content

Commit

Permalink
ci: refactor matrix strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwnvol committed Mar 13, 2024
1 parent 659e6af commit 445d5c6
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@ jobs:
run_test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
py: ['3.8', '3.9', '3.10', '3.11', '3.12']
config:
[
{os: ubuntu-latest, py: '3.8'},
{os: ubuntu-latest, py: '3.9'},
{os: ubuntu-latest, py: '3.10'},
{os: ubuntu-latest, py: '3.11'},
{os: ubuntu-latest, py: '3.12'},
{os: macos-latest, py: '3.8'},
{os: macos-latest, py: '3.9'},
{os: macos-latest, py: '3.10'},
{os: macos-latest, py: '3.11'},
{os: macos-latest, py: '3.12'},
{os: macos-14, py: '3.10'},
{os: macos-14, py: '3.11'},
{os: macos-14, py: '3.12'},
]
name: Python ${{ matrix.py }} on ${{ matrix.os }}
if: (! ((startsWith(matrix.py, '3.8') || startsWith(matrix.py, '3.9')) && startsWith(matrix.os, 'macos-14')))
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down

0 comments on commit 445d5c6

Please sign in to comment.