@@ -99,17 +99,11 @@ jobs:
9999 path : $HOME/.cache/pip
100100 key : pip-${{ inputs.python_version }}-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.PIP_CACHE_NUMBER }}
101101
102- - name : Install Python (using actions/setup-python) ${{ inputs.python_version }}
103- if : ${{ !inputs.use_pyenv_python }}
104- uses : actions/setup-python@v6
102+ - name : Install Python
103+ uses : ./.github/actions/setup-python
105104 with :
106- python-version : ${{ inputs.python_version }}
107-
108- - name : Install Python (from pyenv) ${{ inputs.python_version }}
109- if : ${{ inputs.use_pyenv_python }}
110- uses : ./.github/actions/setup-pyenv-python
111- with :
112- python-version : ${{ inputs.python_version }}
105+ python_version : ${{ inputs.python_version }}
106+ use_pyenv : ${{ inputs.use_pyenv_python }}
113107
114108 # Build PyTorch here once, integration tests jobs should load it from cache.
115109 - name : Setup PyTorch
@@ -229,17 +223,11 @@ jobs:
229223 path : $HOME/.cache/pip
230224 key : pip-${{ inputs.python_version }}-${{ matrix.suite }}-${{ hashFiles('pyproject.toml', 'setup.py') }}-${{ env.PIP_CACHE_NUMBER }}
231225
232- - name : Install Python (using actions/setup-python) ${{ inputs.python_version }}
233- if : ${{ !inputs.use_pyenv_python }}
234- uses : actions/setup-python@v6
235- with :
236- python-version : ${{ inputs.python_version }}
237-
238- - name : Install Python (from pyenv) ${{ inputs.python_version }}
239- if : ${{ inputs.use_pyenv_python }}
240- uses : ./.github/actions/setup-pyenv-python
226+ - name : Install Python
227+ uses : ./.github/actions/setup-python
241228 with :
242- python-version : ${{ inputs.python_version }}
229+ python_version : ${{ inputs.python_version }}
230+ use_pyenv : ${{ inputs.use_pyenv_python }}
243231
244232 - name : Setup PyTorch
245233 uses : ./.github/actions/setup-pytorch
@@ -423,10 +411,11 @@ jobs:
423411 path : reports
424412 merge-multiple : true
425413
426- - name : Install Python (using actions/setup-python) ${{ inputs.python_version }}
427- uses : actions/setup-python@v6
414+ - name : Install Python
415+ uses : ./.github/ actions/setup-python
428416 with :
429- python-version : ${{ inputs.python_version }}
417+ python_version : ${{ inputs.python_version }}
418+ use_pyenv : ${{ inputs.use_pyenv_python }}
430419
431420 - name : Install pass_rate dependencies
432421 run : |
0 commit comments