Skip to content

Commit e597ec1

Browse files
authored
Use Python 3.10 in CI (#4428)
We have new test time dependencies that do not exist for Python 3.9 (#4424). Note 1: we will continue building the wheels for 3.9 and will test with Python 3.9 with ["Build and test Python"](https://github.com/intel/intel-xpu-backend-for-triton/actions/workflows/build-test-python.yml) (going to skip tests that reuire the new dependency, will do in a separate PR). Note 2: we need to update branch protection rules before merging this PR. Signed-off-by: Pavel Chekin <[email protected]>
1 parent 8b921bf commit e597ec1

12 files changed

+16
-16
lines changed

.github/workflows/auto-update-translator-cid.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
CACHE_NUMBER: 1
4545
with:
4646
path: $HOME/.cache/pip
47-
key: pip-3.9-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.CACHE_NUMBER }}
47+
key: pip-3.10-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.CACHE_NUMBER }}
4848

49-
- name: Install Python 3.9
49+
- name: Install Python 3.10
5050
if: ${{ env.TARGET_PRID == null }}
5151
uses: actions/setup-python@v5
5252
with:
53-
python-version: '3.9'
53+
python-version: '3.10'
5454

5555
- name: Setup PyTorch
5656
if: ${{ env.TARGET_PRID == null }}

.github/workflows/build-test-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
name: Integration tests matrix
5252
strategy:
5353
matrix:
54-
python: ["3.9"]
54+
python: ["3.10"]
5555
uses: ./.github/workflows/build-test-reusable.yml
5656
with:
5757
device: ${{ inputs.runner_label }}

.github/workflows/build-test-spirv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Integration tests matrix
1111
uses: ./.github/workflows/build-test-reusable.yml
1212
with:
13-
python_version: "3.9"
13+
python_version: "3.10"
1414
skip_list: default
1515
build_llvm: true
1616
use_spirv_backend: true

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Python
4545
uses: actions/setup-python@v5
4646
with:
47-
python-version: '3.9'
47+
python-version: '3.10'
4848

4949
- name: Clean up old workspaces
5050
shell: bash

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
fail-fast: false
109109
matrix:
110110
python:
111-
- "3.9"
111+
- "3.10"
112112
driver: ${{ fromJson((inputs.runner_label || '') == '' && '["rolling", "lts"]' || '["rolling"]') }}
113113

114114
uses: ./.github/workflows/build-test-reusable.yml

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Python
3434
uses: actions/setup-python@v5
3535
with:
36-
python-version: '3.9'
36+
python-version: '3.10'
3737

3838
- name: Clean up old workspaces
3939
shell: bash

.github/workflows/inductor-tests-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
python_version:
1919
description: Python version
2020
type: string
21-
default: "3.9"
21+
default: "3.10"
2222
pytorch_repo:
2323
description: PyTorch repo (e.g. user/repo)
2424
type: string

.github/workflows/inductor-tests-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
python_version:
2828
description: Python version
2929
type: string
30-
default: "3.9"
30+
default: "3.10"
3131
run_name:
3232
description: Custom run name
3333
type: string
@@ -37,7 +37,7 @@ permissions: read-all
3737

3838
env:
3939
PYTHONIOENCODING: utf-8
40-
PYTHON_VERSION: "${{ inputs.python_version || '3.9' }}"
40+
PYTHON_VERSION: "${{ inputs.python_version || '3.10' }}"
4141
NEW_WORKSPACE: C:\gh${{ github.run_id }}
4242

4343
jobs:

.github/workflows/inductor-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
python_version:
2424
description: Python version
2525
type: string
26-
default: "3.9"
26+
default: "3.10"
2727
run_name:
2828
description: Custom run name
2929
type: string
@@ -74,7 +74,7 @@ jobs:
7474
uses: ./.github/workflows/inductor-tests-reusable.yml
7575
with:
7676
pytorch_repo: ${{ inputs.pytorch_repo || 'pytorch/pytorch' }}
77-
python_version: ${{ inputs.python_version || '3.9' }}
77+
python_version: ${{ inputs.python_version || '3.10' }}
7878
runner_label: ${{ inputs.runner_label || '' }}
7979
suite: ${{ needs.compute-params.outputs.suite }}
8080
pytorch_ref: ${{ inputs.pytorch_ref || '' }}

.github/workflows/pip-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Setup Python
5656
uses: actions/setup-python@v5
5757
with:
58-
python-version: '3.9'
58+
python-version: '3.10'
5959

6060
- name: Clean up old workspaces
6161
shell: bash

0 commit comments

Comments
 (0)