Skip to content

Commit 4ec4548

Browse files
Update action versions (meta-pytorch#1422)
* update python version * update download-artifact and checkout version * update upload artifact version * solve immutatble artifacts by new names * update download-artifacts
1 parent 227d3d7 commit 4ec4548

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/_build_test_upload.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ jobs:
6868
python-version: pure
6969
steps:
7070
- name: Checkout Source Repository
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272
with:
7373
ref: ${{ inputs.branch }}
7474
submodules: recursive
7575
- name: Setup Python ${{ matrix.python-version }} for Windows
7676
if: ${{ startsWith( matrix.os, 'windows' ) }}
77-
uses: actions/setup-python@v4
77+
uses: actions/setup-python@v5
7878
with:
7979
python-version: ${{ matrix.python-version }}
8080
- name: Add temp runner environment variables
@@ -139,9 +139,9 @@ jobs:
139139
140140
- name: Upload Wheels to Github
141141
if: always()
142-
uses: actions/upload-artifact@v3
142+
uses: actions/upload-artifact@v4
143143
with:
144-
name: torchdata-artifact
144+
name: torchdata-artifact-${{ matrix.os }}-${{ matrix.python-version }}
145145
path: dist/torchdata*.whl
146146

147147
wheel_upload:
@@ -167,9 +167,10 @@ jobs:
167167
aws-region: us-east-1
168168
- name: Download Artifacts from Github
169169
continue-on-error: true
170-
uses: actions/download-artifact@v3
170+
uses: actions/download-artifact@v4
171171
with:
172-
name: torchdata-artifact
172+
pattern: torchdata-artifact-*
173+
merge-multiple: true
173174
- name: Determine if Wheel Uploading is needed
174175
run: |
175176
upload=false
@@ -216,11 +217,11 @@ jobs:
216217
runs-on: ubuntu-latest
217218
steps:
218219
- name: Setup Python 3.9
219-
uses: actions/setup-python@v4
220+
uses: actions/setup-python@v5
220221
with:
221222
python-version: 3.9
222223
- name: Checkout
223-
uses: actions/checkout@v3
224+
uses: actions/checkout@v4
224225
with:
225226
ref: ${{ inputs.branch }}
226227
submodules: recursive

.github/workflows/lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Setup Python
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: "3.9"
1919
- name: Check out source repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- name: Install lint utilities
2222
run: |
2323
pip install pre-commit
@@ -43,11 +43,11 @@ jobs:
4343
echo "value=$PT_CHANNEL" >> $GITHUB_OUTPUT
4444
id: pytorch_channel
4545
- name: Setup Python environment
46-
uses: actions/setup-python@v4
46+
uses: actions/setup-python@v5
4747
with:
4848
python-version: 3.9
4949
- name: Check out source repository
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151
- name: Install PyTorch
5252
run: |
5353
pip3 install networkx
@@ -79,10 +79,10 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- name: Setup Python
82-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@v5
8383
with:
8484
python-version: "3.9"
8585
- name: Check out source repository
86-
uses: actions/checkout@v3
86+
uses: actions/checkout@v4
8787
- name: Check if documentation is complete
8888
run: python ./.github/scripts/check_complete_doc.py

0 commit comments

Comments
 (0)