2020-12-17 15:03:54 +00:00
|
|
|
name: Validate Python e2e
|
2020-04-29 17:57:02 +00:00
|
|
|
on:
|
|
|
|
push:
|
2020-05-01 16:52:58 +00:00
|
|
|
branches:
|
2020-07-14 14:04:57 +00:00
|
|
|
- main
|
2020-05-01 16:52:58 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-04-29 17:57:02 +00:00
|
|
|
pull_request:
|
2020-05-01 16:52:58 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2020-04-29 17:57:02 +00:00
|
|
|
schedule:
|
2020-12-17 15:03:54 +00:00
|
|
|
- cron: 30 3 * * *
|
2020-04-29 17:57:02 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
default-version:
|
|
|
|
name: Setup default version
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-05-30 12:59:08 +00:00
|
|
|
os: [macos-latest, windows-latest, ubuntu-20.04]
|
2020-04-29 17:57:02 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: setup default python
|
|
|
|
uses: ./
|
|
|
|
|
|
|
|
- name: Validate version
|
|
|
|
run: python --version
|
|
|
|
|
|
|
|
- name: Run simple python code
|
|
|
|
run: python -c 'import math; print(math.factorial(5))'
|
|
|
|
|
|
|
|
setup-versions-from-manifest:
|
|
|
|
name: Setup ${{ matrix.python }} ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-05-30 12:59:08 +00:00
|
|
|
os: [macos-latest, windows-latest, ubuntu-20.04]
|
2020-04-29 17:57:02 +00:00
|
|
|
python: [3.5.4, 3.6.7, 3.7.5, 3.8.1]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: setup-python ${{ matrix.python }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python }}
|
|
|
|
|
|
|
|
- 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))'
|
2020-07-17 09:58:03 +00:00
|
|
|
|
|
|
|
setup-pre-release-version-from-manifest:
|
|
|
|
name: Setup 3.9.0-beta.4 ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-05-30 12:59:08 +00:00
|
|
|
os: [macos-latest, windows-latest, ubuntu-20.04]
|
2020-07-17 09:58:03 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: setup-python 3.9.0-beta.4
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
python-version: '3.9.0-beta.4'
|
|
|
|
|
|
|
|
- name: Validate version
|
|
|
|
run: |
|
|
|
|
$pythonVersion = (python --version)
|
|
|
|
if ("Python 3.9.0b4" -ne "$pythonVersion"){
|
|
|
|
Write-Host "The current version is $pythonVersion; expected version is 3.9.0b4"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
$pythonVersion
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
- name: Run simple code
|
|
|
|
run: python -c 'import math; print(math.factorial(5))'
|
2020-12-07 21:59:14 +00:00
|
|
|
|
2020-12-17 15:03:54 +00:00
|
|
|
setup-pypy-legacy:
|
2020-12-07 21:59:14 +00:00
|
|
|
name: Setup PyPy ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-05-30 12:59:08 +00:00
|
|
|
os: [macos-11, windows-2019, ubuntu-20.04]
|
2020-12-07 21:59:14 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: setup-python pypy3
|
|
|
|
uses: ./
|
|
|
|
with:
|
2023-05-30 12:59:08 +00:00
|
|
|
python-version: 'pypy-3.8'
|