update e2e tests format

This commit is contained in:
Aparna Jyothi 2025-04-17 14:52:15 +05:30
parent 1fe8f1d6ec
commit b3d00b79c6

View File

@ -3,7 +3,7 @@ name: e2e tests
on: on:
push: push:
branches: branches:
- main - samplev4
paths-ignore: paths-ignore:
- '**.md' - '**.md'
pull_request: pull_request:
@ -13,57 +13,86 @@ on:
jobs: jobs:
test-setup-python: test-setup-python:
name: Test setup-python name: Test setup-python
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.operating-system }}
strategy: strategy:
matrix: matrix:
include: operating-system: [ubuntu-22.04, windows-latest]
# ubuntu-only fail-fast: false
- os: ubuntu-22.04
python: 3.7.13
- os: ubuntu-22.04
python: 3.8.12
# windows-only
- os: windows-latest
python: 3.7.5
- os: windows-latest
python: 3.6.7
- os: windows-latest
python: 3.8.1
# both platforms
- os: ubuntu-22.04
python: 3.7
- os: windows-latest
python: 3.7
- os: ubuntu-22.04
python: 3.8
- os: windows-latest
python: 3.8
- os: ubuntu-22.04
python: 3.10.4
- os: windows-latest
python: 3.10.4
- os: ubuntu-22.04
python: '<3.11'
verify-version: '3.10'
- os: windows-latest
python: '<3.11'
verify-version: '3.10'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python }} - name: Run with setup-python 3.6
id: setup if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./ uses: ./
with: with:
python-version: ${{ matrix.python }} python-version: 3.6
- name: Verify 3.6
if: ${{ matrix.operating-system == 'windows-latest' }}
run: python __tests__/verify-python.py 3.6
- name: Verify Python ${{ matrix.python }} - name: Run with setup-python 3.7
run: python __tests__/verify-python.py ${{ matrix.verify-version || matrix.python }} uses: ./
with:
python-version: 3.7
- name: Verify 3.7
run: python __tests__/verify-python.py 3.7
- name: Run python-path sample - name: Run with setup-python 3.8
if: ${{ matrix.python == '3.10.4' }} uses: ./
run: pipx run --python '${{ steps.setup.outputs.python-path }}' nox --version with:
python-version: 3.8
- name: Verify 3.8
run: python __tests__/verify-python.py 3.8
- name: Run with setup-python 3.7.5
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./
with:
python-version: 3.7.5
- name: Verify 3.7.5
if: ${{ matrix.operating-system == 'windows-latest' }}
run: python __tests__/verify-python.py 3.7.5
- name: Run with setup-python 3.6.7
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./
with:
python-version: 3.6.7
- name: Verify 3.6.7
if: ${{ matrix.operating-system == 'windows-latest' }}
run: python __tests__/verify-python.py 3.6.7
- name: Run with setup-python 3.8.1
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./
with:
python-version: 3.8.1
- name: Verify 3.8.1
if: ${{ matrix.operating-system == 'windows-latest' }}
run: python __tests__/verify-python.py 3.8.1
- name: Run with setup-python 3.10
id: cp310
uses: ./
with:
python-version: '3.10'
- name: Verify 3.10
run: python __tests__/verify-python.py 3.10
- name: Run python-path sample 3.10
run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version
- name: Run with setup-python ==3.8
uses: ./
with:
python-version: '==3.8'
- name: Verify ==3.8
run: python __tests__/verify-python.py 3.8
- name: Run with setup-python <3.11
uses: ./
with:
python-version: '<3.11'
- name: Verify <3.11
run: python __tests__/verify-python.py 3.10