mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 17:23:52 +00:00
check failure fix
This commit is contained in:
parent
77a921a769
commit
f1041c059c
95
.github/workflows/e2e-tests.yml
vendored
95
.github/workflows/e2e-tests.yml
vendored
@ -13,62 +13,59 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test-setup-python:
|
test-setup-python:
|
||||||
name: Test setup-python
|
name: Test setup-python
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-22.04, windows-latest]
|
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.8.12'
|
||||||
|
- os: windows-latest
|
||||||
|
python: '==3.8.12'
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
python: '<3.11'
|
||||||
|
- os: windows-latest
|
||||||
|
python: '<3.11'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run with setup-python 3.7
|
- name: Setup Python ${{ matrix.python }}
|
||||||
|
id: setup
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: ${{ matrix.python }}
|
||||||
- name: Verify 3.7
|
|
||||||
run: python __tests__/verify-python.py 3.7
|
|
||||||
|
|
||||||
- name: Run with setup-python 3.8
|
- name: Verify Python ${{ matrix.python }}
|
||||||
uses: ./
|
run: python __tests__/verify-python.py ${{ matrix.python }}
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
- name: Verify 3.8
|
|
||||||
run: python __tests__/verify-python.py 3.8
|
|
||||||
|
|
||||||
- name: Run with setup-python 3.7.13
|
- name: Run python-path sample
|
||||||
uses: ./
|
if: ${{ matrix.python == '3.10.4' }}
|
||||||
with:
|
run: pipx run --python '${{ steps.setup.outputs.python-path }}' nox --version
|
||||||
python-version: 3.7.13
|
|
||||||
- name: Verify 3.7.13
|
|
||||||
run: python __tests__/verify-python.py 3.7.13
|
|
||||||
|
|
||||||
- name: Run with setup-python 3.8.12
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
python-version: 3.8.12
|
|
||||||
- name: Verify 3.8.12
|
|
||||||
run: python __tests__/verify-python.py 3.8.12
|
|
||||||
|
|
||||||
- name: Run with setup-python 3.10.4
|
|
||||||
id: cp310
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
python-version: '3.10.4'
|
|
||||||
- name: Verify 3.10
|
|
||||||
run: python __tests__/verify-python.py 3.10.4
|
|
||||||
- name: Run python-path sample 3.10.4
|
|
||||||
run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version
|
|
||||||
|
|
||||||
- name: Run with setup-python ==3.8
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
python-version: '==3.8.12'
|
|
||||||
- name: Verify ==3.8.12
|
|
||||||
run: python __tests__/verify-python.py 3.8.12
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user