diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 169fcf05..0b0b2e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,35 +103,37 @@ jobs: uses: actions/checkout@v4 - name: '🧱 Build test matrix for pull request' if: needs.check-pr.outputs.is-pr == 'true' - uses: druzsan/setup-matrix@v1 + uses: druzsan/setup-matrix@v2 with: matrix: | - os: ubuntu-latest, - python-version: 3.8 3.9 3.10 3.11 + os: [ubuntu-latest] + python-version: [3.8, 3.9, 3.10, 3.11] - name: '🧱 Build test matrix for release' if: env.MATRIX == '' && startsWith(github.ref, 'refs/tags/v') - uses: druzsan/setup-matrix@v1 + uses: druzsan/setup-matrix@v2 with: matrix: | - os: ubuntu-latest windows-latest macos-latest, - python-version: 3.8 3.9 3.10 3.11 + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: [3.8, 3.9, 3.10, 3.11] - name: '🧱 Build test matrix for main branch' if: env.MATRIX == '' && github.ref == 'refs/heads/main' - uses: druzsan/setup-matrix@v1 + uses: druzsan/setup-matrix@v2 with: matrix: | - os: ubuntu-latest, - python-version: 3.8 3.9 3.10 3.11 - include: | - os: windows-latest python-version: 3.8, - os: macos-latest python-version: 3.8 + os: [ubuntu-latest] + python-version: [3.8, 3.9, 3.10, 3.11] + include: + - os: windows-latest + python-version: 3.8 + - os: macos-latest + python-version: 3.8 - name: '🧱 Build test matrix for development branch' if: env.MATRIX == '' - uses: druzsan/setup-matrix@v1 + uses: druzsan/setup-matrix@v2 with: matrix: | - os: ubuntu-latest, - python-version: 3.8 + os: [ubuntu-latest] + python-version: [3.8] - name: Print matrix run: echo "$MATRIX" | yq -P '{"matrix":.}' - name: Set output