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:
push:
branches:
- main
- samplev4
paths-ignore:
- '**.md'
pull_request:
@ -13,57 +13,86 @@ on:
jobs:
test-setup-python:
name: Test setup-python
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
include:
# ubuntu-only
- 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'
operating-system: [ubuntu-22.04, windows-latest]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python }}
id: setup
- name: Run with setup-python 3.6
if: ${{ matrix.operating-system == 'windows-latest' }}
uses: ./
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 }}
run: python __tests__/verify-python.py ${{ matrix.verify-version || matrix.python }}
- name: Run with setup-python 3.7
uses: ./
with:
python-version: 3.7
- name: Verify 3.7
run: python __tests__/verify-python.py 3.7
- name: Run python-path sample
if: ${{ matrix.python == '3.10.4' }}
run: pipx run --python '${{ steps.setup.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.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