Skip to content

Commit 12f7e07

Browse files
FindHaometa-codesync[bot]
authored andcommitted
Update GitHub Actions to latest versions and Python 3.11 to 3.13 (#357)
Summary: Pull Request resolved: #357 - Update all GitHub Actions to latest major versions to resolve Node.js 20 deprecation warnings: - actions/checkout: v4 → v6 - actions/setup-python: v4/v5 → v6 - actions/setup-node: v4 → v6 - actions/cache: v3 → v5 - actions/configure-pages: v4 → v5 - actions/upload-pages-artifact: v3 → v4 - Update Python version from 3.11 to 3.13 across all CI workflows and scripts Affected files: - .github/workflows/nightly-pypi.yml - .github/workflows/test.yml - .github/workflows/deploy-pages.yml - .github/workflows/deploy-pages-standalone.yml - .github/workflows/website-build.yml - .ci/setup.sh Reviewed By: prithvip0524 Differential Revision: D96172761 fbshipit-source-id: d29f9eec67f6a08b8e85b04b58988dd06fdf037f
1 parent 9d6bcc6 commit 12f7e07

File tree

6 files changed

+35
-35
lines changed

6 files changed

+35
-35
lines changed

.ci/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88

99
# Default values
1010
CONDA_ENV=${CONDA_ENV:-"tritonparse"}
11-
PYTHON_VERSION=${PYTHON_VERSION:-"3.11"}
11+
PYTHON_VERSION=${PYTHON_VERSION:-"3.13"}
1212
CUDA_VERSION=${CUDA_VERSION:-"12.8"}
1313

1414
echo "Setting up tritonparse environment..."

.github/workflows/deploy-pages-standalone.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828

2929
- name: Setup Node.js
30-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@v6
3131
with:
3232
node-version: "22"
3333
cache: "npm"
@@ -47,10 +47,10 @@ jobs:
4747
cp website/dist/standalone.html standalone-deploy/index.html
4848
4949
- name: Setup Pages
50-
uses: actions/configure-pages@v4
50+
uses: actions/configure-pages@v5
5151

5252
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v3
53+
uses: actions/upload-pages-artifact@v4
5454
with:
5555
path: "./standalone-deploy"
5656

.github/workflows/deploy-pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232

3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636

3737
- name: Setup Node.js
38-
uses: actions/setup-node@v4
38+
uses: actions/setup-node@v6
3939
with:
4040
node-version: "22"
4141
cache: "npm"
@@ -50,10 +50,10 @@ jobs:
5050
run: npm run build
5151

5252
- name: Setup Pages
53-
uses: actions/configure-pages@v4
53+
uses: actions/configure-pages@v5
5454

5555
- name: Upload artifact
56-
uses: actions/upload-pages-artifact@v3
56+
uses: actions/upload-pages-artifact@v4
5757
with:
5858
path: "./website/dist"
5959

.github/workflows/nightly-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0 # setuptools-scm requires full history/tags
2323

24-
- uses: actions/setup-python@v5
24+
- uses: actions/setup-python@v6
2525
with:
26-
python-version: "3.11"
26+
python-version: "3.13"
2727

2828
- name: Check for new commits since last nightly
2929
id: check

.github/workflows/test.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
runs-on: ubuntu-latest
3838
timeout-minutes: 10
3939
steps:
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v6
4141

42-
- name: Set up Python 3.11
43-
uses: actions/setup-python@v4
42+
- name: Set up Python 3.13
43+
uses: actions/setup-python@v6
4444
with:
45-
python-version: "3.11"
45+
python-version: "3.13"
4646

4747
- name: Install development dependencies
4848
run: |
@@ -58,12 +58,12 @@ jobs:
5858
runs-on: 4-core-ubuntu-gpu-t4
5959
timeout-minutes: 120
6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v6
6262

63-
- name: Set up Python 3.11
64-
uses: actions/setup-python@v4
63+
- name: Set up Python 3.13
64+
uses: actions/setup-python@v6
6565
with:
66-
python-version: "3.11"
66+
python-version: "3.13"
6767

6868
- name: Get daily cache timestamp
6969
id: daily-cache
@@ -82,12 +82,12 @@ jobs:
8282
echo "Using weekly cache stamp: $WEEK_STAMP"
8383
8484
- name: Cache pip dependencies
85-
uses: actions/cache@v3
85+
uses: actions/cache@v5
8686
with:
8787
path: ~/.cache/pip
88-
key: ${{ runner.os }}-pip-3.11-${{ steps.daily-cache.outputs.date }}
88+
key: ${{ runner.os }}-pip-3.13-${{ steps.daily-cache.outputs.date }}
8989
restore-keys: |
90-
${{ runner.os }}-pip-3.11-
90+
${{ runner.os }}-pip-3.13-
9191
9292
- name: Get Triton latest commit
9393
id: triton-commit
@@ -116,7 +116,7 @@ jobs:
116116
fi
117117
118118
- name: Cache Triton source and build
119-
uses: actions/cache@v3
119+
uses: actions/cache@v5
120120
with:
121121
path: |
122122
/tmp/triton
@@ -129,7 +129,7 @@ jobs:
129129
- name: Setup environment
130130
env:
131131
CONDA_ENV: tritonparse
132-
PYTHON_VERSION: "3.11"
132+
PYTHON_VERSION: "3.13"
133133
CUDA_VERSION: "12.8"
134134
run: |
135135
bash .ci/setup.sh
@@ -159,12 +159,12 @@ jobs:
159159
runs-on: 4-core-ubuntu-gpu-t4
160160
timeout-minutes: 120
161161
steps:
162-
- uses: actions/checkout@v4
162+
- uses: actions/checkout@v6
163163

164-
- name: Set up Python 3.11
165-
uses: actions/setup-python@v4
164+
- name: Set up Python 3.13
165+
uses: actions/setup-python@v6
166166
with:
167-
python-version: "3.11"
167+
python-version: "3.13"
168168

169169
- name: Get daily cache timestamp
170170
id: daily-cache
@@ -175,17 +175,17 @@ jobs:
175175
echo "Using daily cache stamp: $DATE_STAMP"
176176
177177
- name: Cache pip dependencies
178-
uses: actions/cache@v3
178+
uses: actions/cache@v5
179179
with:
180180
path: ~/.cache/pip
181-
key: ${{ runner.os }}-pip-3.11-${{ steps.daily-cache.outputs.date }}
181+
key: ${{ runner.os }}-pip-3.13-${{ steps.daily-cache.outputs.date }}
182182
restore-keys: |
183-
${{ runner.os }}-pip-3.11-
183+
${{ runner.os }}-pip-3.13-
184184
185185
- name: Setup environment
186186
env:
187187
CONDA_ENV: tritonparse-pip
188-
PYTHON_VERSION: "3.11"
188+
PYTHON_VERSION: "3.13"
189189
CUDA_VERSION: "12.8"
190190
run: |
191191
bash .ci/setup.sh

.github/workflows/website-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424

2525
- name: Setup Node.js
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: "24"
2929
cache: "npm"

0 commit comments

Comments
 (0)