Upgrade gates from Python 3.8 to Python 3.10 (#3146)

* Upgrade from Python 3.8 to Python 3.10

* Update 2 more workflows

---------

Co-authored-by: Kelly <kellyly@microsoft.com>
This commit is contained in:
Kelly 2024-07-12 14:35:43 -07:00 коммит произвёл GitHub
Родитель d5d4c09ebf
Коммит 5d45ae203e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
9 изменённых файлов: 22 добавлений и 22 удалений

4
.github/workflows/assets-docs.yaml поставляемый
Просмотреть файл

@ -57,10 +57,10 @@ jobs:
token: ${{ secrets.AZUREML_BOT_PAT }}
path: ${{ env.wiki_dir }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $main_dir/$scripts_azureml_assets_dir -r $main_dir/$scripts_docs_dir/requirements.txt

8
.github/workflows/assets-release.yaml поставляемый
Просмотреть файл

@ -57,10 +57,10 @@ jobs:
fetch-depth: 0
path: ${{ env.release_dir }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $main_dir/$scripts_azureml_assets_dir
@ -223,10 +223,10 @@ jobs:
token: ${{ secrets.AZUREML_BOT_PAT }}
path: ${{ env.release_dir }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $main_dir/$scripts_azureml_assets_dir

8
.github/workflows/assets-test.yaml поставляемый
Просмотреть файл

@ -70,10 +70,10 @@ jobs:
separator: ','
sha: ${{ env.merge_commit_hash || github.sha }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $scripts_azureml_assets_dir
@ -119,10 +119,10 @@ jobs:
with:
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $scripts_azureml_assets_dir

4
.github/workflows/assets-validation.yaml поставляемый
Просмотреть файл

@ -48,10 +48,10 @@ jobs:
files_separator: ','
separator: ','
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Log in to Azure
env:

4
.github/workflows/batch-score-ci.yaml поставляемый
Просмотреть файл

@ -41,10 +41,10 @@ jobs:
uses: Azure/azureml-assets/.github/actions/clone-repo@main
with:
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }}
- name: Use Python 3.8
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '>=3.10'
- name: Log in to Azure and create resources
uses: ./.github/actions/create-azure-resources
with:

4
.github/workflows/environments-ci.yaml поставляемый
Просмотреть файл

@ -68,10 +68,10 @@ jobs:
separator: ','
sha: ${{ env.merge_commit_hash || github.sha }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $scripts_azureml_assets_dir

4
.github/workflows/scripts-syntax.yaml поставляемый
Просмотреть файл

@ -40,10 +40,10 @@ jobs:
files: |
**/*.py
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -r $scripts_validation_dir/requirements.txt

4
.github/workflows/scripts-test.yaml поставляемый
Просмотреть файл

@ -57,10 +57,10 @@ jobs:
with:
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }}
- name: Use Python 3.8 or newer
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '>=3.8'
python-version: '>=3.10'
- name: Install dependencies
run: pip install -e $scripts_azureml_assets_dir -r $scripts_test_dir/requirements.txt

Просмотреть файл

@ -38,10 +38,10 @@ jobs:
- name: Clone branch
uses: actions/checkout@v3
- name: Use Python 3.8
- name: Use Python 3.10 or newer
uses: actions/setup-python@v4
with:
python-version: '==3.8'
python-version: '>=3.10'
- name: Create conda env
run: |