mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-07-05 08:45:59 +02:00
V4 - Add workflow file for publishing releases to immutable action package (#1084)
* add publish immutable action * depricate ubuntu-20.04 * fix check failures * fix check failures on older versions * check failures fix for older versions * check failure fix * check failure fix * compatable version update * compatable version update for ubuntu-22.04 and windows * fix * update e2e tests format * fomat update * updated wording
This commit is contained in:
parent
3605726ffa
commit
7f4fc3e22c
5 changed files with 64 additions and 17 deletions
24
.github/workflows/test-python.yml
vendored
24
.github/workflows/test-python.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
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
|
||||
|
@ -62,7 +62,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
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
|
||||
|
@ -107,7 +107,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
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
|
||||
|
@ -150,7 +150,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
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
|
||||
|
@ -198,7 +198,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
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
|
||||
|
@ -241,21 +241,21 @@ jobs:
|
|||
run: python -c 'import math; print(math.factorial(5))'
|
||||
|
||||
setup-pre-release-version-from-manifest:
|
||||
name: Setup 3.9.0-beta.4 ${{ matrix.os }}
|
||||
name: Setup 3.11.0-beta.4 ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04]
|
||||
os: [macos-13, windows-latest, ubuntu-22.04]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup-python 3.9.0-beta.4
|
||||
- name: setup-python 3.11.0-beta.4
|
||||
id: setup-python
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '3.9.0-beta.4'
|
||||
python-version: '3.11.0-beta.4'
|
||||
|
||||
- name: Check python-path
|
||||
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
||||
|
@ -264,8 +264,8 @@ jobs:
|
|||
- 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"
|
||||
if ("Python 3.11.0b4" -ne "$pythonVersion"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.11.0b4"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
|
@ -337,7 +337,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
|
||||
os: [macos-13, windows-latest, ubuntu-22.04]
|
||||
python: ['3.7', '3.8', '3.9', '3.10']
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue