Skip to content

Commit 133d709

Browse files
author
Vincent Moens
committed
[CI] Fix nightly build
ghstack-source-id: 5502fa9 Pull Request resolved: #2666
1 parent 1ce25f1 commit 133d709

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/nightly_build.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ on:
2121
branches:
2222
- "nightly"
2323

24-
env:
25-
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: node16
26-
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
27-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true # https://github.com/actions/checkout/issues/1809
28-
2924
concurrency:
3025
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.
3126
# On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke.
@@ -41,12 +36,15 @@ jobs:
4136
matrix:
4237
python_version: [["3.9", "cp39-cp39"], ["3.10", "cp310-cp310"], ["3.11", "cp311-cp311"], ["3.12", "cp312-cp312"]]
4338
cuda_support: [["", "cpu", "cpu"]]
44-
container: pytorch/manylinux-${{ matrix.cuda_support[2] }}
4539
steps:
4640
- name: Checkout torchrl
47-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4842
env:
4943
AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache"
44+
- name: Setup Python
45+
uses: actions/setup-python@v4
46+
with:
47+
python-version: ${{ matrix.python_version[0] }}
5048
- name: Install PyTorch nightly
5149
run: |
5250
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
@@ -67,7 +65,7 @@ jobs:
6765
python3 -mpip install auditwheel
6866
auditwheel show dist/*
6967
- name: Upload wheel for the test-wheel job
70-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
7169
with:
7270
name: torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
7371
path: dist/*.whl
@@ -81,12 +79,15 @@ jobs:
8179
matrix:
8280
python_version: [["3.9", "cp39-cp39"], ["3.10", "cp310-cp310"], ["3.11", "cp311-cp311"], ["3.12", "cp312-cp312"]]
8381
cuda_support: [["", "cpu", "cpu"]]
84-
container: pytorch/manylinux-${{ matrix.cuda_support[2] }}
8582
steps:
8683
- name: Checkout torchrl
87-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
85+
- name: Setup Python
86+
uses: actions/setup-python@v4
87+
with:
88+
python-version: ${{ matrix.python_version[0] }}
8889
- name: Download built wheels
89-
uses: actions/download-artifact@v3
90+
uses: actions/download-artifact@v4
9091
with:
9192
name: torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
9293
path: /tmp/wheels
@@ -121,7 +122,7 @@ jobs:
121122
env:
122123
AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache"
123124
- name: Checkout torchrl
124-
uses: actions/checkout@v3
125+
uses: actions/checkout@v4
125126
- name: Install PyTorch Nightly
126127
run: |
127128
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
@@ -138,7 +139,7 @@ jobs:
138139
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
139140
python3 -mpip install numpy pytest pillow>=4.1.1 scipy networkx expecttest pyyaml
140141
- name: Download built wheels
141-
uses: actions/download-artifact@v3
142+
uses: actions/download-artifact@v4
142143
with:
143144
name: torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
144145
path: /tmp/wheels
@@ -179,7 +180,7 @@ jobs:
179180
with:
180181
python-version: ${{ matrix.python_version[1] }}
181182
- name: Checkout torchrl
182-
uses: actions/checkout@v3
183+
uses: actions/checkout@v4
183184
- name: Install PyTorch nightly
184185
shell: bash
185186
run: |
@@ -193,7 +194,7 @@ jobs:
193194
--package_name torchrl-nightly \
194195
--python-tag=${{ matrix.python-tag }}
195196
- name: Upload wheel for the test-wheel job
196-
uses: actions/upload-artifact@v3
197+
uses: actions/upload-artifact@v4
197198
with:
198199
name: torchrl-win-${{ matrix.python_version[0] }}.whl
199200
path: dist/*.whl
@@ -212,7 +213,7 @@ jobs:
212213
with:
213214
python-version: ${{ matrix.python_version[1] }}
214215
- name: Checkout torchrl
215-
uses: actions/checkout@v3
216+
uses: actions/checkout@v4
216217
- name: Install PyTorch Nightly
217218
shell: bash
218219
run: |
@@ -229,7 +230,7 @@ jobs:
229230
run: |
230231
python3 -mpip install git+https://github.com/pytorch/tensordict.git
231232
- name: Download built wheels
232-
uses: actions/download-artifact@v3
233+
uses: actions/download-artifact@v4
233234
with:
234235
name: torchrl-win-${{ matrix.python_version[0] }}.whl
235236
path: wheels
@@ -265,9 +266,9 @@ jobs:
265266
python_version: [["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"], ["3.12", "3.12"]]
266267
steps:
267268
- name: Checkout torchrl
268-
uses: actions/checkout@v3
269+
uses: actions/checkout@v4
269270
- name: Download built wheels
270-
uses: actions/download-artifact@v3
271+
uses: actions/download-artifact@v4
271272
with:
272273
name: torchrl-win-${{ matrix.python_version[0] }}.whl
273274
path: wheels

0 commit comments

Comments
 (0)