Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{CI} Use Python 3.10 as the default and disable Python 3.9 tests #20287

Merged
merged 2 commits into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions azure-pipelines-full-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -46,8 +46,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -68,8 +68,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -90,8 +90,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand Down
72 changes: 37 additions & 35 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ jobs:

steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10

- task: BatchScript@1
inputs:
Expand All @@ -137,9 +137,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10
- template: .azure-pipelines/templates/azdev_setup.yml
- bash: |
set -ev
Expand Down Expand Up @@ -306,9 +306,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10


- script: |
Expand Down Expand Up @@ -375,10 +375,10 @@ jobs:
--rm -v $PYPI_FILES:/mnt/pypi python:3.8 \
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"

echo "== Testing pip install on Python 3.9 =="
docker run \
--rm -v $PYPI_FILES:/mnt/pypi python:3.9 \
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"
# echo "== Testing pip install on Python 3.9 =="
# docker run \
# --rm -v $PYPI_FILES:/mnt/pypi python:3.9 \
# /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"

echo "== Testing pip install on Python 3.10 =="
docker run \
Expand All @@ -398,8 +398,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -419,8 +419,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -443,8 +443,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -468,8 +468,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -489,8 +489,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -510,8 +510,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand All @@ -531,8 +531,8 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
steps:
Expand Down Expand Up @@ -595,7 +595,7 @@ jobs:
-e CLI_VERSION=$CLI_VERSION \
-e HOMEBREW_UPSTREAM_URL=$HOMEBREW_UPSTREAM_URL \
--name azurecli \
python:3.9 \
python:3.10 \
/mnt/scripts/run.sh

# clean up
Expand Down Expand Up @@ -843,9 +843,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10
- template: .azure-pipelines/templates/azdev_setup.yml
- bash: |
set -ev
Expand All @@ -859,9 +859,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10
- template: .azure-pipelines/templates/azdev_setup.yml
- bash: |
set -ev
Expand All @@ -878,8 +878,10 @@ jobs:
python.version: '3.6'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
# Python39:
# python.version: '3.9'
Python310:
python.version: '3.10'
pool:
vmImage: 'ubuntu-20.04'
steps:
Expand Down Expand Up @@ -907,9 +909,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10
- template: .azure-pipelines/templates/azdev_setup.yml
- bash: |
set -ev
Expand All @@ -927,9 +929,9 @@ jobs:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
displayName: 'Use Python 3.10'
inputs:
versionSpec: 3.9
versionSpec: 3.10
- bash: pip install --upgrade pip wheel
displayName: "Install pip and wheel"
- bash: ./scripts/ci/test_ref_doc.sh
Expand Down