From 8ef0463c9c8067defe320f3e6a58b697d0a141f9 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 18:35:25 +0100 Subject: [PATCH 01/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/actions/setup-pyenv-python/action.yml diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml new file mode 100644 index 0000000000..ca47bd9dbe --- /dev/null +++ b/.github/actions/setup-pyenv-python/action.yml @@ -0,0 +1,30 @@ +name: setup-pyenv-python +description: Setup Python via pyenv +inputs: + python_version: + description: Python version to setup + pyenv_version: + description: Pyenv version to setup + default: "v2.4.19" +runs: + using: "composite" + steps: + - name: Clone pyenv + uses: actions/checkout@v4 + with: + repository: "https://github.com/pyenv/pyenv.git" + ref: ${{ inputs.pyenv_version }} + path: pyenv + + - name: Setup environment variables + shell: bash + run: | + echo PATH="${PWD}/pyenv/bin:${PATH}" >> "${GITHUB_ENV}" + echo PYENV_ROOT="${PWD}/pyenv" >> "${GITHUB_ENV}" + eval "$(pyenv init -)" >> ~/.profile + + - name: Setup Python + shell: bash + run: | + pyenv install ${{ inputs.python_version }} + echo "PATH="$(dirname $(pyenv which ${{ inputs.python_version }})):$PATH" >> ${GITHUB_ENV} From c2a61580ac7cf18c6a052b27e6088e1e51583292 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 18:47:06 +0100 Subject: [PATCH 02/22] try pyenv --- .github/actions/setup-pyenv-python/action.yml | 10 +++++----- .github/workflows/build-test-reusable.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index ca47bd9dbe..f4461a6a73 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -1,9 +1,9 @@ name: setup-pyenv-python description: Setup Python via pyenv inputs: - python_version: + python-version: description: Python version to setup - pyenv_version: + pyenv-version: description: Pyenv version to setup default: "v2.4.19" runs: @@ -13,7 +13,7 @@ runs: uses: actions/checkout@v4 with: repository: "https://github.com/pyenv/pyenv.git" - ref: ${{ inputs.pyenv_version }} + ref: ${{ inputs.pyenv-version }} path: pyenv - name: Setup environment variables @@ -26,5 +26,5 @@ runs: - name: Setup Python shell: bash run: | - pyenv install ${{ inputs.python_version }} - echo "PATH="$(dirname $(pyenv which ${{ inputs.python_version }})):$PATH" >> ${GITHUB_ENV} + pyenv install ${{ inputs.python-version }} + echo "PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} diff --git a/.github/workflows/build-test-reusable.yml b/.github/workflows/build-test-reusable.yml index df935322ac..732f52838b 100644 --- a/.github/workflows/build-test-reusable.yml +++ b/.github/workflows/build-test-reusable.yml @@ -96,7 +96,7 @@ jobs: - name: Install Python ${{ inputs.python_version }} if: ${{ !inputs.use_system_python }} - uses: actions/setup-python@v5 + uses: ./.github/actions/setup-pyenv-python with: python-version: ${{ inputs.python_version }} From d47ec866b63798f627f5dfd1854322f51fda4110 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 18:50:33 +0100 Subject: [PATCH 03/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index f4461a6a73..a1f2173e37 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -12,7 +12,7 @@ runs: - name: Clone pyenv uses: actions/checkout@v4 with: - repository: "https://github.com/pyenv/pyenv.git" + repository: "pyenv/pyenv" ref: ${{ inputs.pyenv-version }} path: pyenv From 300e3398159e59dd33aac6011dc775b78722f44a Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 18:54:44 +0100 Subject: [PATCH 04/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index a1f2173e37..1995c85710 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -21,6 +21,10 @@ runs: run: | echo PATH="${PWD}/pyenv/bin:${PATH}" >> "${GITHUB_ENV}" echo PYENV_ROOT="${PWD}/pyenv" >> "${GITHUB_ENV}" + + - name: Setup pyenv into profile + shell: bash + run: | eval "$(pyenv init -)" >> ~/.profile - name: Setup Python From 3957b2698b6f7376ade53492595b1f25cac691a9 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 18:58:51 +0100 Subject: [PATCH 05/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 1995c85710..8c392d9c78 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -27,6 +27,12 @@ runs: run: | eval "$(pyenv init -)" >> ~/.profile + - name: Install required packages + shell: bash + run: | + apt-get update + apt-get install -y libncurses5-dev + - name: Setup Python shell: bash run: | From aaa603ee03b4a0ebea7f8ccb10af5e46dc9ef5a4 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:01:00 +0100 Subject: [PATCH 06/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 8c392d9c78..1b64928892 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -30,11 +30,14 @@ runs: - name: Install required packages shell: bash run: | - apt-get update - apt-get install -y libncurses5-dev + sudo apt-get update + sudo apt-get install -y libncurses5-dev - name: Setup Python shell: bash run: | pyenv install ${{ inputs.python-version }} echo "PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} + + - name: Use python as python3 + ln -s $ ~/.local/bin \ No newline at end of file From 170d1783528cf002b3a357d5c939c851693ef3dd Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:03:55 +0100 Subject: [PATCH 07/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 1b64928892..721ddf1b0f 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -40,4 +40,7 @@ runs: echo "PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 - ln -s $ ~/.local/bin \ No newline at end of file + shell: bash + run: | + ln -s $(which pip${{ inputs.python-version }}) ~/.local/bin/pip + ln -s $(which python${{ inputs.python-version }}) ~/.local/bin/python From 20c370326c94c5eb86a8b111ec296434b7032b1b Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:08:20 +0100 Subject: [PATCH 08/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 721ddf1b0f..dae587e59e 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -31,7 +31,7 @@ runs: shell: bash run: | sudo apt-get update - sudo apt-get install -y libncurses5-dev + sudo apt-get install -y libncurses5-dev libbz2-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev - name: Setup Python shell: bash From fb3bb964fd44da224032e9701b4239fe04693773 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:11:38 +0100 Subject: [PATCH 09/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index dae587e59e..d6513051b3 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -31,13 +31,13 @@ runs: shell: bash run: | sudo apt-get update - sudo apt-get install -y libncurses5-dev libbz2-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev + sudo apt-get install -y libncurses5-dev libbz2-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev liblzma-dev - name: Setup Python shell: bash run: | pyenv install ${{ inputs.python-version }} - echo "PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} + echo PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 shell: bash From 9915f2fa0b215ed1bd1e92bec5c89f9fa8df50a1 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:16:43 +0100 Subject: [PATCH 10/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index d6513051b3..0a03d7a0b9 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -42,5 +42,6 @@ runs: - name: Use python as python3 shell: bash run: | - ln -s $(which pip${{ inputs.python-version }}) ~/.local/bin/pip - ln -s $(which python${{ inputs.python-version }}) ~/.local/bin/python + ls -l ~/.local/bin/ + ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip + ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python From f8636ffaead87a32d9ae406f5e6fd66d38dea5f5 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:19:15 +0100 Subject: [PATCH 11/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 0a03d7a0b9..ebc0b36d82 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -36,12 +36,14 @@ runs: - name: Setup Python shell: bash run: | + set -x pyenv install ${{ inputs.python-version }} echo PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 shell: bash run: | + set -x ls -l ~/.local/bin/ ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python From 6ec7be55530da2c05f2817d316ada21e688de129 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:27:30 +0100 Subject: [PATCH 12/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index ebc0b36d82..c6e86cae25 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -38,7 +38,7 @@ runs: run: | set -x pyenv install ${{ inputs.python-version }} - echo PATH="$(dirname $(pyenv which ${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} + echo PATH="$(dirname $(pyenv which python3)):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 shell: bash From 79098dbcd4ef12e5755ec0d0b2e69d22df8b5ec9 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:32:21 +0100 Subject: [PATCH 13/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index c6e86cae25..3201aa14d3 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -38,7 +38,7 @@ runs: run: | set -x pyenv install ${{ inputs.python-version }} - echo PATH="$(dirname $(pyenv which python3)):$PATH" >> ${GITHUB_ENV} + echo PATH="$(dirname $(pyenv which python${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 shell: bash From 5dd6f7cf689bd5507418e5c5685e46e3e2b871fb Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:35:45 +0100 Subject: [PATCH 14/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 3201aa14d3..2d3664fd60 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -45,5 +45,6 @@ runs: run: | set -x ls -l ~/.local/bin/ + pyenv global ${{ inputs.python-version }} ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python From f107ba5d46c521576b292d1d1d542d27ecfe898d Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:38:23 +0100 Subject: [PATCH 15/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 2d3664fd60..e08a267400 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -38,6 +38,7 @@ runs: run: | set -x pyenv install ${{ inputs.python-version }} + pyenv global ${{ inputs.python-version }} echo PATH="$(dirname $(pyenv which python${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - name: Use python as python3 @@ -45,6 +46,5 @@ runs: run: | set -x ls -l ~/.local/bin/ - pyenv global ${{ inputs.python-version }} ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python From 6c970e46db72c0941523e7a5b6daa5f20ac859b5 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:41:24 +0100 Subject: [PATCH 16/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index e08a267400..3679b4971a 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -48,3 +48,5 @@ runs: ls -l ~/.local/bin/ ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python + ln -sf $(which pip${{ inputs.python-version }}) ~/.local/bin/pip3 + ln -sf $(which python${{ inputs.python-version }}) ~/.local/bin/python3 From 9c19f3319a2a99accf02977159f212302aea9084 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Mon, 25 Nov 2024 19:44:45 +0100 Subject: [PATCH 17/22] pyenv action --- .github/actions/setup-pyenv-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-pyenv-python/action.yml b/.github/actions/setup-pyenv-python/action.yml index 3679b4971a..308def7d02 100644 --- a/.github/actions/setup-pyenv-python/action.yml +++ b/.github/actions/setup-pyenv-python/action.yml @@ -40,7 +40,7 @@ runs: pyenv install ${{ inputs.python-version }} pyenv global ${{ inputs.python-version }} echo PATH="$(dirname $(pyenv which python${{ inputs.python-version }})):$PATH" >> ${GITHUB_ENV} - + - name: Use python as python3 shell: bash run: | From 05116ee3ad61a8e49edd62abdb251bb1be88c897 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Wed, 27 Nov 2024 12:40:56 +0100 Subject: [PATCH 18/22] pyenv action --- .github/workflows/build-test-gpu.yml | 6 +++--- .github/workflows/build-test-python.yml | 5 +++++ .github/workflows/build-test-reusable.yml | 14 ++++++++++---- .github/workflows/build-test.yml | 5 +++++ .github/workflows/triton-benchmarks.yml | 4 ++-- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-test-gpu.yml b/.github/workflows/build-test-gpu.yml index c6dc41fb1b..e5986fd1e7 100644 --- a/.github/workflows/build-test-gpu.yml +++ b/.github/workflows/build-test-gpu.yml @@ -39,8 +39,8 @@ on: description: Ignore pytest.skip type: boolean default: false - use_system_python: - description: Use system Python + use_pyenv_python: + description: Use Python built with pyenv type: boolean default: false @@ -64,4 +64,4 @@ jobs: skip_list: ${{ inputs.skip_list }} run_name: ${{ inputs.run_name || format('Build and test {0}', inputs.runner_label) }} enable_unskip: ${{ inputs.enable_unskip }} - use_system_python: ${{ inputs.use_system_python || false }} + use_pyenv_python: ${{ inputs.use_pyenv_python || false }} diff --git a/.github/workflows/build-test-python.yml b/.github/workflows/build-test-python.yml index aab01486a7..3cfce7f97a 100644 --- a/.github/workflows/build-test-python.yml +++ b/.github/workflows/build-test-python.yml @@ -32,6 +32,10 @@ on: description: Ignore pytest.skip type: boolean default: false + use_pyenv_python: + description: Use Python built with pyenv + type: boolean + default: false permissions: read-all @@ -79,3 +83,4 @@ jobs: skip_list: ${{ inputs.skip_list }} run_name: ${{ inputs.run_name }} enable_unskip: ${{ inputs.enable_unskip }} + use_pyenv_python: ${{ inputs.use_pyenv_python || false }} diff --git a/.github/workflows/build-test-reusable.yml b/.github/workflows/build-test-reusable.yml index 732f52838b..d8ba1f4da8 100644 --- a/.github/workflows/build-test-reusable.yml +++ b/.github/workflows/build-test-reusable.yml @@ -56,8 +56,8 @@ on: description: Runner label for version type: string default: runner-0.0.20 - use_system_python: - description: Use system Python + use_pyenv_python: + description: Use Python built with pyenv type: boolean default: false @@ -94,8 +94,14 @@ jobs: path: $HOME/.cache/pip key: pip-${{ inputs.python_version }}-${{ hashFiles('python/pyproject.toml', 'python/setup.py') }}-${{ env.CACHE_NUMBER }} - - name: Install Python ${{ inputs.python_version }} - if: ${{ !inputs.use_system_python }} + - name: Install Python (using actions/setup-python) ${{ inputs.python_version }} + if: ${{ !inputs.use_pyenv_python }} + uses: actions/setup-python@v5 + with: + python-version: ${{ inputs.python_version }} + + - name: Install Python (from pyenv) ${{ inputs.python_version }} + if: ${{ inputs.use_pyenv_python }} uses: ./.github/actions/setup-pyenv-python with: python-version: ${{ inputs.python_version }} diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index df88444224..c626aa254b 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -39,6 +39,10 @@ on: description: Ignore pytest.skip type: boolean default: false + use_pyenv_python: + description: Use Python built with pyenv + type: boolean + default: false pull_request: branches: @@ -130,3 +134,4 @@ jobs: skip_list: ${{ inputs.skip_list }} run_name: ${{ inputs.run_name }} enable_unskip: ${{ inputs.enable_unskip || false }} + use_pyenv_python: ${{ inputs.use_pyenv_python || false }} diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index 29792b6af3..1af7774f7e 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -28,7 +28,7 @@ on: description: JSON list of benchmarks to skip type: string default: "[]" - use_system_python: + use_pyenv_python: description: Use system Python type: boolean default: false @@ -71,7 +71,7 @@ jobs: key: pip-$PYTHON_VERSION-$GITHUB_SHA - name: Install Python - if: ${{ !(inputs.use_system_python || false) }} + if: ${{ !(inputs.use_pyenv_python || false) }} uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} From 71c1f0ae13a3e13e9c92d47c534965240f3c2826 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Wed, 27 Nov 2024 12:48:22 +0100 Subject: [PATCH 19/22] pyenv action --- .github/workflows/triton-benchmarks.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index 1af7774f7e..fc0243640d 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -29,9 +29,10 @@ on: type: string default: "[]" use_pyenv_python: - description: Use system Python + description: Use Python built with pyenv type: boolean default: false + schedule: - cron: "5 23 * * *" pull_request: @@ -75,6 +76,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} + + - name: Install Python (from pyenv) ${{ inputs.python_version }} + if: ${{ inputs.use_pyenv_python }} + uses: ./.github/actions/setup-pyenv-python + with: + python-version: ${{ inputs.python_version }} - name: Identify Python version run: | From 3198be5dea7b347272bac4b540d8f04d8bee9835 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Wed, 27 Nov 2024 12:50:39 +0100 Subject: [PATCH 20/22] pyenv action --- .github/workflows/triton-benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index fc0243640d..c0d9ccde89 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -81,7 +81,7 @@ jobs: if: ${{ inputs.use_pyenv_python }} uses: ./.github/actions/setup-pyenv-python with: - python-version: ${{ inputs.python_version }} + python-version: ${{ env.PYTHON_VERSION }} - name: Identify Python version run: | From a125de8322e2f4ad028c91f340dfa2b7606e1c09 Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Wed, 27 Nov 2024 12:59:30 +0100 Subject: [PATCH 21/22] pyenv action --- .github/workflows/build-test-gpu.yml | 2 +- .github/workflows/build-test-python.yml | 2 +- .github/workflows/build-test-reusable.yml | 2 +- .github/workflows/build-test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-gpu.yml b/.github/workflows/build-test-gpu.yml index e5986fd1e7..45b1bd524f 100644 --- a/.github/workflows/build-test-gpu.yml +++ b/.github/workflows/build-test-gpu.yml @@ -40,7 +40,7 @@ on: type: boolean default: false use_pyenv_python: - description: Use Python built with pyenv + description: Use Python built with pyenv type: boolean default: false diff --git a/.github/workflows/build-test-python.yml b/.github/workflows/build-test-python.yml index 3cfce7f97a..f62b1d6aec 100644 --- a/.github/workflows/build-test-python.yml +++ b/.github/workflows/build-test-python.yml @@ -33,7 +33,7 @@ on: type: boolean default: false use_pyenv_python: - description: Use Python built with pyenv + description: Use Python built with pyenv type: boolean default: false diff --git a/.github/workflows/build-test-reusable.yml b/.github/workflows/build-test-reusable.yml index d8ba1f4da8..b91b0b9248 100644 --- a/.github/workflows/build-test-reusable.yml +++ b/.github/workflows/build-test-reusable.yml @@ -57,7 +57,7 @@ on: type: string default: runner-0.0.20 use_pyenv_python: - description: Use Python built with pyenv + description: Use Python built with pyenv type: boolean default: false diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index c626aa254b..df056ac320 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -40,7 +40,7 @@ on: type: boolean default: false use_pyenv_python: - description: Use Python built with pyenv + description: Use Python built with pyenv type: boolean default: false From 9f006ac6c9b55c3513b917cefa42dc6e6f0ed6cb Mon Sep 17 00:00:00 2001 From: Vadim Musin Date: Wed, 27 Nov 2024 13:00:13 +0100 Subject: [PATCH 22/22] pyenv action --- .github/workflows/triton-benchmarks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index c0d9ccde89..36508e9f9b 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -29,7 +29,7 @@ on: type: string default: "[]" use_pyenv_python: - description: Use Python built with pyenv + description: Use Python built with pyenv type: boolean default: false @@ -76,7 +76,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - + - name: Install Python (from pyenv) ${{ inputs.python_version }} if: ${{ inputs.use_pyenv_python }} uses: ./.github/actions/setup-pyenv-python