From 445d5c61f96971f42c457ebdb7ab6c35f34907fd Mon Sep 17 00:00:00 2001 From: nightwnvol Date: Wed, 13 Mar 2024 13:43:44 +0100 Subject: [PATCH] ci: refactor matrix strategy --- .github/workflows/run_tests.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index bc8bd18..6b5aa50 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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