From 7234b81688335cb073811bb50180576e3fd3c636 Mon Sep 17 00:00:00 2001 From: priya-kinthali Date: Mon, 14 Oct 2024 18:14:19 +0530 Subject: [PATCH] Modified workflows to enhance the testing in accordance with latest changes --- .github/workflows/e2e-cache.yml | 10 +-- .github/workflows/e2e-tests.yml | 51 ++++++++++++--- .github/workflows/test-graalpy.yml | 11 ++-- .github/workflows/test-pypy.yml | 2 +- .github/workflows/test-python.yml | 101 +++++++++++++++++++++++------ 5 files changed, 135 insertions(+), 40 deletions(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index df1339c9..a1cd4b04 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-version: ['3.10', 'pypy-3.10-v7.x'] + python-version: ['3.10', 'pypy-3.10-v7.x', '3.9', 'pypy-3.9-v7.x'] steps: - uses: actions/checkout@v4 - name: Setup Python @@ -40,7 +40,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-version: ['3.10', 'pypy-3.10-v7.x'] + python-version: ['3.10', 'pypy-3.10-v7.x', '3.9', 'pypy-3.9-v7.x'] steps: - uses: actions/checkout@v4 - name: Setup Python @@ -76,7 +76,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-version: ['3.10', 'pypy-3.10'] + python-version: ['3.10', 'pypy-3.10', '3.9', 'pypy-3.9-v7.x'] steps: - uses: actions/checkout@v4 - name: Install poetry @@ -98,7 +98,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-version: ['3.10', 'pypy-3.10-v7.x'] + python-version: ['3.10', 'pypy-3.10-v7.x', '3.9', 'pypy-3.9-v7.x'] steps: - uses: actions/checkout@v4 - name: Setup Python @@ -117,7 +117,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, macos-13] - python-version: ['3.10', 'pypy-3.10-v7.x'] + python-version: ['3.10', 'pypy-3.10-v7.x', '3.9', 'pypy-3.9-v7.x'] steps: - uses: actions/checkout@v4 - name: Setup Python diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 8263e7ad..b216d1d4 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -12,6 +12,41 @@ on: workflow_dispatch: jobs: + test-setup-python-older: + name: Test setup-python old versions + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + [ + ubuntu-20.04, + ubuntu-22.04, + ubuntu-latest, + windows-latest, + macos-latest, + macos-13 + ] + python: [3.8.10, 3.8.18] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run with setup-python ${{ matrix.python }} + id: setup-python + uses: ./ + with: + python-version: ${{ matrix.python }} + - name: Verify ${{ matrix.python }} + run: python __tests__/verify-python.py ${{ matrix.python }} test-setup-python: name: Test setup-python runs-on: ${{ matrix.operating-system }} @@ -21,7 +56,7 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 @@ -65,15 +100,15 @@ jobs: - name: Verify 3.13.0 run: python __tests__/verify-python.py 3.13.0 - - name: Run with setup-python 3.11.9 - id: cp311 + - name: Run with setup-python 3.13 + id: cp313 uses: ./ with: - python-version: '3.11.9' - - name: Verify 3.11.9 - run: python __tests__/verify-python.py 3.11.9 - - name: Run python-path sample 3.11.9 - run: pipx run --python '${{ steps.cp311.outputs.python-path }}' nox --version + python-version: '3.13' + - name: Verify 3.13 + run: python __tests__/verify-python.py 3.13 + - name: Run python-path sample 3.13 + run: pipx run --python '${{ steps.cp313.outputs.python-path }}' nox --version - name: Run with setup-python ==3.13 uses: ./ diff --git a/.github/workflows/test-graalpy.yml b/.github/workflows/test-graalpy.yml index 04549bc8..35a74f87 100644 --- a/.github/workflows/test-graalpy.yml +++ b/.github/workflows/test-graalpy.yml @@ -18,11 +18,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13] + os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest, macos-latest, macos-13] graalpy: - 'graalpy-24.1' - 'graalpy-23.1' - + - 'graalpy-23.0' + - 'graalpy-22.3' steps: - name: Checkout uses: actions/checkout@v4 @@ -63,8 +64,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13] - graalpy: ['graalpy24.1', 'graalpy23.1'] + os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest, macos-latest, macos-13] + graalpy: ['graalpy24.1', 'graalpy23.1', 'graalpy23.0', 'graalpy22.3'] steps: - name: Checkout @@ -88,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13] + os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest, macos-latest, macos-13] steps: - uses: actions/checkout@v4 - name: Setup GraalPy and check latest diff --git a/.github/workflows/test-pypy.yml b/.github/workflows/test-pypy.yml index 46b09585..2562b5fc 100644 --- a/.github/workflows/test-pypy.yml +++ b/.github/workflows/test-pypy.yml @@ -24,7 +24,7 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 122a3d67..aa4cf865 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -24,12 +24,21 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' steps: - name: Checkout uses: actions/checkout@v4 @@ -67,12 +76,21 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' steps: - name: Checkout uses: actions/checkout@v4 @@ -113,12 +131,21 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' steps: - name: Checkout uses: actions/checkout@v4 @@ -157,12 +184,21 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0] + python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' steps: - name: Checkout uses: actions/checkout@v4 @@ -206,12 +242,21 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] + exclude: + - os: ubuntu-22.04 + python: '3.8.10' + - os: ubuntu-latest + python: '3.8.10' + - os: macos-latest + python: '3.8.18' + - os: windows-latest + python: '3.8.18' steps: - name: Checkout uses: actions/checkout@v4 @@ -255,7 +300,7 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 @@ -293,7 +338,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] steps: - name: Checkout uses: actions/checkout@v4 @@ -321,7 +366,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] steps: - name: Checkout uses: actions/checkout@v4 @@ -354,12 +399,12 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python: ['3.11', '3.12', '3.13'] + python: ['3.8', '3.9', '3.11', '3.12', '3.13'] steps: - name: Checkout uses: actions/checkout@v4 @@ -386,12 +431,27 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 ] - python-version: ['3.11', '3.12', '3.13'] + python: ['3.8', '3.9', '3.11', '3.12', '3.13'] + exclude: + - os: macos-latest + python: '3.8' + - os: windows-latest + python: '3.8' + - os: macos-latest + python: '3.9' + - os: windows-latest + python: '3.9' + - os: macos-latest + python: '3.11' + - os: macos-13 + python: '3.11' + - os: windows-latest + python: '3.11' steps: - uses: actions/checkout@v4 - name: Setup Python and check latest @@ -418,7 +478,7 @@ jobs: [ ubuntu-20.04, ubuntu-22.04, - ubuntu-24.04, + ubuntu-latest, windows-latest, macos-latest, macos-13 @@ -429,15 +489,14 @@ jobs: uses: ./ with: python-version: | - 3.11 3.12 3.13 check-latest: true - name: Validate version run: | $pythonVersion = (python --version) - if ("$pythonVersion" -NotMatch "3.13"){ - Write-Host "The current version is $pythonVersion; expected version is 3.13" + if ("$pythonVersion" -NotMatch "3.12"){ + Write-Host "The current version is $pythonVersion; expected version is 3.12" exit 1 } $pythonVersion