Skip to content

Commit 05116ee

Browse files
committed
pyenv action
1 parent 9c19f33 commit 05116ee

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ on:
3939
description: Ignore pytest.skip
4040
type: boolean
4141
default: false
42-
use_system_python:
43-
description: Use system Python
42+
use_pyenv_python:
43+
description: Use Python built with pyenv
4444
type: boolean
4545
default: false
4646

@@ -64,4 +64,4 @@ jobs:
6464
skip_list: ${{ inputs.skip_list }}
6565
run_name: ${{ inputs.run_name || format('Build and test {0}', inputs.runner_label) }}
6666
enable_unskip: ${{ inputs.enable_unskip }}
67-
use_system_python: ${{ inputs.use_system_python || false }}
67+
use_pyenv_python: ${{ inputs.use_pyenv_python || false }}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
description: Ignore pytest.skip
3333
type: boolean
3434
default: false
35+
use_pyenv_python:
36+
description: Use Python built with pyenv
37+
type: boolean
38+
default: false
3539

3640
permissions: read-all
3741

@@ -79,3 +83,4 @@ jobs:
7983
skip_list: ${{ inputs.skip_list }}
8084
run_name: ${{ inputs.run_name }}
8185
enable_unskip: ${{ inputs.enable_unskip }}
86+
use_pyenv_python: ${{ inputs.use_pyenv_python || false }}

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ on:
5656
description: Runner label for version
5757
type: string
5858
default: runner-0.0.20
59-
use_system_python:
60-
description: Use system Python
59+
use_pyenv_python:
60+
description: Use Python built with pyenv
6161
type: boolean
6262
default: false
6363

@@ -94,8 +94,14 @@ jobs:
9494
path: $HOME/.cache/pip
9595
key: pip-${{ inputs.python_version }}-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }}
9696

97-
- name: Install Python ${{ inputs.python_version }}
98-
if: ${{ !inputs.use_system_python }}
97+
- name: Install Python (using actions/setup-python) ${{ inputs.python_version }}
98+
if: ${{ !inputs.use_pyenv_python }}
99+
uses: actions/setup-python@v5
100+
with:
101+
python-version: ${{ inputs.python_version }}
102+
103+
- name: Install Python (from pyenv) ${{ inputs.python_version }}
104+
if: ${{ inputs.use_pyenv_python }}
99105
uses: ./.github/actions/setup-pyenv-python
100106
with:
101107
python-version: ${{ inputs.python_version }}

.github/workflows/build-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ on:
3939
description: Ignore pytest.skip
4040
type: boolean
4141
default: false
42+
use_pyenv_python:
43+
description: Use Python built with pyenv
44+
type: boolean
45+
default: false
4246

4347
pull_request:
4448
branches:
@@ -130,3 +134,4 @@ jobs:
130134
skip_list: ${{ inputs.skip_list }}
131135
run_name: ${{ inputs.run_name }}
132136
enable_unskip: ${{ inputs.enable_unskip || false }}
137+
use_pyenv_python: ${{ inputs.use_pyenv_python || false }}

.github/workflows/triton-benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
description: JSON list of benchmarks to skip
2929
type: string
3030
default: "[]"
31-
use_system_python:
31+
use_pyenv_python:
3232
description: Use system Python
3333
type: boolean
3434
default: false
@@ -71,7 +71,7 @@ jobs:
7171
key: pip-$PYTHON_VERSION-$GITHUB_SHA
7272

7373
- name: Install Python
74-
if: ${{ !(inputs.use_system_python || false) }}
74+
if: ${{ !(inputs.use_pyenv_python || false) }}
7575
uses: actions/setup-python@v5
7676
with:
7777
python-version: ${{ env.PYTHON_VERSION }}

0 commit comments

Comments
 (0)