Skip to content

Commit d8d5a29

Browse files
authored
Upgrade GitHub Actions for Node 24 compatibility (#698)
## Summary Upgrade GitHub Actions to their latest versions to ensure compatibility with Node 24, as Node 20 will reach end-of-life in April 2026. ## Changes | Action | Old Version(s) | New Version | Release | Files | |--------|---------------|-------------|---------|-------| | `actions/checkout` | [`v4`](https://github.com/actions/checkout/releases/tag/v4) | [`v6`](https://github.com/actions/checkout/releases/tag/v6) | [Release](https://github.com/actions/checkout/releases/tag/v6) | _example_tests_runner.yml, code_quality.yml, example_tests.yml, gpu_tests.yml, pages.yml, unit_tests.yml | | `actions/setup-python` | [`v5`](https://github.com/actions/setup-python/releases/tag/v5) | [`v6`](https://github.com/actions/setup-python/releases/tag/v6) | [Release](https://github.com/actions/setup-python/releases/tag/v6) | code_quality.yml, pages.yml, unit_tests.yml | ## Context Per [GitHub's announcement](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/), Node 20 is being deprecated and runners will begin using Node 24 by default starting March 4th, 2026. ### Why this matters - **Node 20 EOL**: April 2026 - **Node 24 default**: March 4th, 2026 - **Action**: Update to latest action versions that support Node 24 ### Security Note Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA) to maintain the security benefits of immutable references. ### Testing These changes only affect CI/CD workflow configurations and should not impact application functionality. The workflows should be tested by running them on a branch before merging. Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
1 parent c19ff5e commit d8d5a29

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/_example_tests_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
PIP_CONSTRAINT: "" # Disable pip constraint for upgrading packages
3939
HF_TOKEN: ${{ secrets.HF_TOKEN }}
4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v6
4242
- uses: nv-gha-runners/setup-proxy-cache@main
4343
- name: Setup environment variables
4444
run: |

.github/workflows/code_quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 30
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-python@v5
20+
- uses: actions/checkout@v6
21+
- uses: actions/setup-python@v6
2222
with:
2323
python-version: "3.12"
2424
- name: Secret Scanning

.github/workflows/example_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
outputs:
2121
any_changed: ${{ steps.changed-tests.outputs.any_changed }}
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
with:
2525
fetch-depth: 0
2626
- id: get-pr-info

.github/workflows/gpu_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
any_changed: ${{ steps.changed-tests.outputs.any_changed }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 0
2727
- id: get-pr-info
@@ -68,7 +68,7 @@ jobs:
6868
PIP_CONSTRAINT: "" # Disable pip constraint for upgrading packages
6969
HF_TOKEN: ${{ secrets.HF_TOKEN }}
7070
steps: &gpu_steps
71-
- uses: actions/checkout@v4
71+
- uses: actions/checkout@v6
7272
- uses: nv-gha-runners/setup-proxy-cache@main
7373
- name: Setup environment variables
7474
run: |

.github/workflows/pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 30
2727
steps:
28-
- uses: actions/checkout@v4
29-
- uses: actions/setup-python@v5
28+
- uses: actions/checkout@v6
29+
- uses: actions/setup-python@v6
3030
with:
3131
python-version: "3.12"
3232
- name: Build docs

.github/workflows/unit_tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
runs-on: ubuntu-latest
3535
timeout-minutes: 30
3636
steps:
37-
- uses: actions/checkout@v4
38-
- uses: actions/setup-python@v5
37+
- uses: actions/checkout@v6
38+
- uses: actions/setup-python@v6
3939
with:
4040
python-version: "3.12"
4141
- name: Run unit tests
@@ -52,8 +52,8 @@ jobs:
5252
runs-on: windows-latest
5353
timeout-minutes: 30
5454
steps:
55-
- uses: actions/checkout@v4
56-
- uses: actions/setup-python@v5
55+
- uses: actions/checkout@v6
56+
- uses: actions/setup-python@v6
5757
with:
5858
python-version: "3.12"
5959
- name: Run unit tests (without coverage)
@@ -67,8 +67,8 @@ jobs:
6767
matrix:
6868
py: [10, 11]
6969
steps:
70-
- uses: actions/checkout@v4
71-
- uses: actions/setup-python@v5
70+
- uses: actions/checkout@v6
71+
- uses: actions/setup-python@v6
7272
with:
7373
python-version: "3.${{ matrix.py }}"
7474
- name: Run unit tests
@@ -82,8 +82,8 @@ jobs:
8282
matrix:
8383
torch: [26, 27, 28]
8484
steps:
85-
- uses: actions/checkout@v4
86-
- uses: actions/setup-python@v5
85+
- uses: actions/checkout@v6
86+
- uses: actions/setup-python@v6
8787
with:
8888
python-version: "3.12"
8989
- name: Run unit tests
@@ -97,8 +97,8 @@ jobs:
9797
matrix:
9898
tf: [min]
9999
steps:
100-
- uses: actions/checkout@v4
101-
- uses: actions/setup-python@v5
100+
- uses: actions/checkout@v6
101+
- uses: actions/setup-python@v6
102102
with:
103103
python-version: "3.12"
104104
- name: Run unit tests
@@ -112,8 +112,8 @@ jobs:
112112
matrix:
113113
test-env: [onnx, torch]
114114
steps:
115-
- uses: actions/checkout@v4
116-
- uses: actions/setup-python@v5
115+
- uses: actions/checkout@v6
116+
- uses: actions/setup-python@v6
117117
with:
118118
python-version: "3.12"
119119
- name: Run unit tests

0 commit comments

Comments
 (0)