fix(ci): update all failing workflows

With `macos-latest` moving to `macos-14`, most workflows are currently failing.
Update them to be able to run on `macos-latest`

Don't test python 3.5 on ubuntu. It's been EOL for almost 4 years and there are now some certificate issues with pip.
This commit is contained in:
mayeut 2024-05-09 16:37:40 +02:00
parent 4eb7dbcb95
commit f809e994e2
No known key found for this signature in database
GPG key ID: 8B03CED67D3ABFBA
5 changed files with 85 additions and 82 deletions

View file

@ -21,16 +21,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.15, 3.9.13]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3]
exclude:
- os: ubuntu-22.04
python: 3.5.4
- os: ubuntu-22.04
python: 3.6.7
- os: ubuntu-22.04
python: 3.7.5
python: 3.8.10
include:
- os: windows-latest
python: 3.8.15
python: 3.5.4
- os: ubuntu-20.04
python: 3.6.7
- os: ubuntu-20.04
python: 3.7.5
steps:
- name: Checkout
uses: actions/checkout@v4
@ -65,16 +66,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.15, 3.9.13]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3]
exclude:
- os: ubuntu-22.04
python: 3.5.4
- os: ubuntu-22.04
python: 3.6.7
- os: ubuntu-22.04
python: 3.7.5
python: 3.8.10
include:
- os: windows-latest
python: 3.8.15
python: 3.5.4
- os: ubuntu-20.04
python: 3.6.7
- os: ubuntu-20.04
python: 3.7.5
steps:
- name: Checkout
uses: actions/checkout@v4
@ -112,16 +114,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.15, 3.9.13]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3]
exclude:
- os: ubuntu-22.04
python: 3.5.4
- os: ubuntu-22.04
python: 3.6.7
- os: ubuntu-22.04
python: 3.7.5
python: 3.8.10
include:
- os: windows-latest
python: 3.8.15
python: 3.5.4
- os: ubuntu-20.04
python: 3.6.7
- os: ubuntu-20.04
python: 3.7.5
steps:
- name: Checkout
uses: actions/checkout@v4
@ -157,16 +160,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.15, 3.9.13, '==3.10.10']
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, '==3.12.3']
exclude:
- os: ubuntu-22.04
python: 3.5.4
- os: ubuntu-22.04
python: 3.6.7
- os: ubuntu-22.04
python: 3.7.5
python: 3.8.10
include:
- os: windows-latest
python: 3.8.15
python: 3.5.4
- os: ubuntu-20.04
python: 3.6.7
- os: ubuntu-20.04
python: 3.7.5
steps:
- name: Checkout
uses: actions/checkout@v4
@ -207,16 +211,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.15, 3.9.13]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3]
exclude:
- os: ubuntu-22.04
python: 3.5.4
- os: ubuntu-22.04
python: 3.6.7
- os: ubuntu-22.04
python: 3.7.5
python: 3.8.10
include:
- os: windows-latest
python: 3.8.15
python: 3.5.4
- os: ubuntu-20.04
python: 3.6.7
- os: ubuntu-20.04
python: 3.7.5
steps:
- name: Checkout
uses: actions/checkout@v4
@ -251,21 +256,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.13.0-alpha.6 ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04]
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup-python 3.9.0-beta.4
- name: setup-python 3.13.0-alpha.6
id: setup-python
uses: ./
with:
python-version: '3.9.0-beta.4'
python-version: '3.13.0-alpha.6'
- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
@ -274,8 +279,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.13.0a6" -ne "$pythonVersion"){
Write-Host "The current version is $pythonVersion; expected version is 3.13.0a6"
exit 1
}
$pythonVersion
@ -285,7 +290,7 @@ jobs:
run: python -c 'import math; print(math.factorial(5))'
setup-dev-version:
name: Setup 3.9-dev ${{ matrix.os }}
name: Setup 3.13-dev ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@ -295,25 +300,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: setup-python 3.9-dev
- name: setup-python 3.13-dev
id: setup-python
uses: ./
with:
python-version: '3.9-dev'
python-version: '3.13-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.') }}
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.13.') }}
shell: bash
- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'
setup-prerelease-version:
name: Setup 3.12 ${{ matrix.os }}
name: Setup 3.13 ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@ -323,11 +328,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: setup-python 3.12
- name: setup-python 3.13
id: setup-python
uses: ./
with:
python-version: '3.12'
python-version: '3.13'
allow-prereleases: true
- name: Check python-path
@ -335,7 +340,7 @@ jobs:
shell: bash
- name: Validate version
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.12.') }}
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.13.') }}
shell: bash
- name: Run simple code
@ -348,7 +353,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: ['3.7', '3.8', '3.9', '3.10']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
@ -372,7 +377,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Setup Python and check latest
@ -402,16 +407,17 @@ jobs:
uses: ./
with:
python-version: |
3.7
3.8
3.9
3.10
3.11
3.12
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"
if ("$pythonVersion" -NotMatch "3.12"){
Write-Host "The current version is $pythonVersion; expected version is 3.12"
exit 1
}
$pythonVersion