3ad0340096
e2e tests / Test setup-python (ubuntu-22.04) (push) Has been cancelled
e2e tests / Test setup-python (windows-latest) (push) Has been cancelled
Licensed / Licensed (push) Has been cancelled
Basic validation / Basic validation (push) Has been cancelled
Check dist/ / Check dist/ (push) Has been cancelled
CodeQL analysis / CodeQL analysis (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (windows-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python 3.9, macos-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python pypy-3.8, macos-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python 3.9, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python pypy-3.8, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python 3.9, windows-latest) (push) Has been cancelled
e2e-cache / Test poetry (Python pypy-3.8, windows-latest) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 macos-latest (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 ubuntu-22.04 (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-22.3 ubuntu-latest (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 macos-latest (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 ubuntu-22.04 (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy-23.0 ubuntu-latest (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy22.3 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 macos-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / Setup GraalPy graalpy23.0 ubuntu-latest (noenv) (push) Has been cancelled
Validate GraalPy e2e / check-latest (macos-latest) (push) Has been cancelled
Validate GraalPy e2e / check-latest (ubuntu-latest) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9-nightly macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4rc1 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.4 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.5 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.x macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.x macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8-v7.3.7 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 macos-13 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4rc1 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-nightly ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.4 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.5 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.x ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.x ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8-v7.3.7 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-22.04 (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4rc1 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-nightly ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.4 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.5 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.x ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.x ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8-v7.3.7 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 ubuntu-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-2.7-v7.3.4rc1 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-nightly windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.4 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.5 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.3.x windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy-3.7-v7.x windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8-v7.3.7 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9 windows-latest (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.7 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8 macos-13 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.7 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9-nightly ubuntu-22.04 (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 ubuntu-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.7 ubuntu-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8 ubuntu-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9-nightly ubuntu-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy2.7 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.7 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.8 windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / Setup PyPy pypy3.9-nightly windows-latest (noenv) (push) Has been cancelled
Validate PyPy e2e / check-latest (macos-13) (push) Has been cancelled
Validate PyPy e2e / check-latest (ubuntu-latest) (push) Has been cancelled
Validate PyPy e2e / check-latest (windows-latest) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (macos-13) (push) Has been cancelled
Validate PyPy e2e / setup-pypy-multiple-versions (ubuntu-latest) (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.9-dev windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 ubuntu-22.04 (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 macos-13 version file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 macos-13 version file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 macos-13 version file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 macos-13 version file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 ubuntu-22.04 version file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 version file (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 windows-latest version file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 windows-latest version file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest version file (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 macos-13 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 macos-13 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 macos-13 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 macos-13 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 ubuntu-22.04 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 windows-latest version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 windows-latest version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest version file without parameter (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 macos-13 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 macos-13 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 macos-13 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 macos-13 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup ==3.10.10 macos-13 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 ubuntu-22.04 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup ==3.10.10 ubuntu-22.04 standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 windows-latest standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 windows-latest standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup ==3.10.10 windows-latest standard pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 macos-13 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 macos-13 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 macos-13 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 macos-13 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.8.15 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 ubuntu-22.04 poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.6.7 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.7.5 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.9.13 windows-latest poetry pyproject file (push) Has been cancelled
Validate Python e2e / Setup 3.11.0-beta.4 macos-13 (push) Has been cancelled
Validate Python e2e / Setup 3.11.0-beta.4 ubuntu-22.04 (push) Has been cancelled
Validate Python e2e / Setup 3.11.0-beta.4 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.9-dev macos-latest (push) Has been cancelled
Validate Python e2e / Setup 3.9-dev ubuntu-latest (push) Has been cancelled
Validate Python e2e / Setup 3.12 macos-latest (push) Has been cancelled
Validate Python e2e / Setup 3.12 ubuntu-latest (push) Has been cancelled
Validate Python e2e / Setup 3.12 windows-latest (push) Has been cancelled
Validate Python e2e / Setup 3.10 macos-13 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.7 macos-13 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.8 macos-13 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.9 macos-13 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.10 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.7 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.8 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.9 ubuntu-22.04 (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.10 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.7 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.8 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / Setup 3.9 windows-latest (noenv) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (macos-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (ubuntu-latest, 3.9) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.10) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.8) (push) Has been cancelled
Validate Python e2e / check-latest (windows-latest, 3.9) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (macos-13) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (ubuntu-22.04) (push) Has been cancelled
Validate Python e2e / setup-python-multiple-python-versions (windows-latest) (push) Has been cancelled
e2e-cache / Test pip (Python pypy-3.7-v7.x, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test pip (Python 3.9, windows-latest) (push) Has been cancelled
e2e-cache / Test pip (Python pypy-3.7-v7.x, windows-latest) (push) Has been cancelled
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, windows-latest) (push) Has been cancelled
e2e-cache / Test pip (Python 3.9, macos-13) (push) Has been cancelled
e2e-cache / Test pipenv (Python 3.9, macos-latest) (push) Has been cancelled
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test pipenv (Python 3.9, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test pipenv (Python 3.9, windows-latest) (push) Has been cancelled
e2e-cache / Test pip (Python 3.9, ubuntu-latest) (push) Has been cancelled
e2e-cache / Test pipenv (Python pypy-3.9-v7.x, macos-latest) (push) Has been cancelled
409 lines
12 KiB
YAML
409 lines
12 KiB
YAML
name: Validate Python e2e
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
schedule:
|
|
- cron: 30 3 * * *
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
setup-versions-from-manifest:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
|
|
exclude:
|
|
- os: ubuntu-22.04
|
|
python: 3.6.7
|
|
- os: ubuntu-22.04
|
|
python: 3.7.5
|
|
- os: windows-latest
|
|
python: 3.8.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-versions-from-file:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }} version file
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
|
|
exclude:
|
|
- os: ubuntu-22.04
|
|
python: 3.6.7
|
|
- os: ubuntu-22.04
|
|
python: 3.7.5
|
|
- os: windows-latest
|
|
python: 3.8.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: build-version-file ${{ matrix.python }}
|
|
run: echo ${{ matrix.python }} > .python-version
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version-file: .python-version
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-versions-from-file-without-parameter:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }} version file without parameter
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
|
|
exclude:
|
|
- os: ubuntu-22.04
|
|
python: 3.6.7
|
|
- os: ubuntu-22.04
|
|
python: 3.7.5
|
|
- os: windows-latest
|
|
python: 3.8.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: build-version-file ${{ matrix.python }}
|
|
run: echo ${{ matrix.python }} > .python-version
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-versions-from-standard-pyproject-file:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }} standard pyproject file
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13, '==3.10.10']
|
|
exclude:
|
|
- os: ubuntu-22.04
|
|
python: 3.6.7
|
|
- os: ubuntu-22.04
|
|
python: 3.7.5
|
|
- os: windows-latest
|
|
python: 3.8.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: build-version-file ${{ matrix.python }}
|
|
run: |
|
|
echo '[project]
|
|
requires-python = "${{ matrix.python }}"
|
|
' > pyproject.toml
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version-file: pyproject.toml
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python ${{ matrix.python }}".replace("==", "") -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-versions-from-poetry-pyproject-file:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
|
|
exclude:
|
|
- os: ubuntu-22.04
|
|
python: 3.6.7
|
|
- os: ubuntu-22.04
|
|
python: 3.7.5
|
|
- os: windows-latest
|
|
python: 3.8.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: build-version-file ${{ matrix.python }}
|
|
run: |
|
|
echo '[tool.poetry.dependencies]
|
|
python = "${{ matrix.python }}"
|
|
' > pyproject.toml
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version-file: pyproject.toml
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-pre-release-version-from-manifest:
|
|
name: Setup 3.11.0-beta.4 ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup-python 3.11.0-beta.4
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version: '3.11.0-beta.4'
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("Python 3.11.0b4" -ne "$pythonVersion"){
|
|
Write-Host "The current version is $pythonVersion; expected version is 3.11.0b4"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-dev-version:
|
|
name: Setup 3.9-dev ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup-python 3.9-dev
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version: '3.9-dev'
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.9.') }}
|
|
shell: bash
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-prerelease-version:
|
|
name: Setup 3.12 ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup-python 3.12
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version: '3.12'
|
|
allow-prereleases: true
|
|
|
|
- name: Check python-path
|
|
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
|
shell: bash
|
|
|
|
- name: Validate version
|
|
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.12.') }}
|
|
shell: bash
|
|
|
|
- name: Run simple code
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
setup-versions-noenv:
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }} (noenv)
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-13, windows-latest, ubuntu-22.04]
|
|
python: ['3.7', '3.8', '3.9', '3.10']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
id: setup-python
|
|
uses: ./
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
update-environment: false
|
|
|
|
- name: Python version
|
|
run: ${{ steps.setup-python.outputs.python-path }} --version
|
|
|
|
- name: Run simple code
|
|
run: ${{ steps.setup-python.outputs.python-path }} -c 'import math; print(math.factorial(5))'
|
|
|
|
check-latest:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
python-version: ['3.8', '3.9', '3.10']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Python and check latest
|
|
uses: ./
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
check-latest: true
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("$pythonVersion" -NotMatch "${{ matrix.python-version }}"){
|
|
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|
|
|
|
setup-python-multiple-python-versions:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-22.04, windows-latest, macos-13]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Python and check latest
|
|
uses: ./
|
|
with:
|
|
python-version: |
|
|
3.7
|
|
3.8
|
|
3.9
|
|
3.10
|
|
check-latest: true
|
|
- name: Validate version
|
|
run: |
|
|
$pythonVersion = (python --version)
|
|
if ("$pythonVersion" -NotMatch "3.10"){
|
|
Write-Host "The current version is $pythonVersion; expected version is 3.10"
|
|
exit 1
|
|
}
|
|
$pythonVersion
|
|
shell: pwsh
|