From 8278c0eed3adef7513498aee9cfd01c70388346d Mon Sep 17 00:00:00 2001 From: Vrinda1725 <97523662+Vrinda1725@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:50:56 +0530 Subject: [PATCH 1/2] changed matrix --- .github/workflows/python-installation.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index 591066b..4ceef22 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -4,10 +4,14 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ ubuntu-latest, macos-14, windows-latest] + py-version: [3.10, 3.11, 3.12] + runs-on: ${{ matrix.os }} steps: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.10 + python-version: ${{ matrix.py-version }} From 6c138aa73e5b95b72ce85ba72c58f969b7ade287 Mon Sep 17 00:00:00 2001 From: Vrinda1725 <97523662+Vrinda1725@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:57:12 +0530 Subject: [PATCH 2/2] vrinda changes --- .github/workflows/python-installation.yml | 27 ++++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index 4ceef22..3a82a0d 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -1,17 +1,22 @@ name: Installing Python - -on: [push] - +'on': + - push jobs: build: - strategy: + runs-on: '${{ matrix.os }}' + strategy: matrix: - os: [ ubuntu-latest, macos-14, windows-latest] - py-version: [3.10, 3.11, 3.12] - runs-on: ${{ matrix.os }} + os: + - ubuntu-latest + - macos-14 + - windows-latest + py-version: + - "3.10" + - "3.11" + - "3.12" steps: - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.py-version }} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '${{ matrix.py-version }}'