21
21
branches :
22
22
- " nightly"
23
23
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
-
29
24
concurrency :
30
25
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.
31
26
# 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:
41
36
matrix :
42
37
python_version : [["3.9", "cp39-cp39"], ["3.10", "cp310-cp310"], ["3.11", "cp311-cp311"], ["3.12", "cp312-cp312"]]
43
38
cuda_support : [["", "cpu", "cpu"]]
44
- container : pytorch/manylinux-${{ matrix.cuda_support[2] }}
45
39
steps :
46
40
- name : Checkout torchrl
47
- uses : actions/checkout@v3
41
+ uses : actions/checkout@v4
48
42
env :
49
43
AGENT_TOOLSDIRECTORY : " /opt/hostedtoolcache"
44
+ - name : Setup Python
45
+ uses : actions/setup-python@v4
46
+ with :
47
+ python-version : ${{ matrix.python_version[0] }}
50
48
- name : Install PyTorch nightly
51
49
run : |
52
50
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
67
65
python3 -mpip install auditwheel
68
66
auditwheel show dist/*
69
67
- name : Upload wheel for the test-wheel job
70
- uses : actions/upload-artifact@v3
68
+ uses : actions/upload-artifact@v4
71
69
with :
72
70
name : torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
73
71
path : dist/*.whl
@@ -81,12 +79,15 @@ jobs:
81
79
matrix :
82
80
python_version : [["3.9", "cp39-cp39"], ["3.10", "cp310-cp310"], ["3.11", "cp311-cp311"], ["3.12", "cp312-cp312"]]
83
81
cuda_support : [["", "cpu", "cpu"]]
84
- container : pytorch/manylinux-${{ matrix.cuda_support[2] }}
85
82
steps :
86
83
- 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] }}
88
89
- name : Download built wheels
89
- uses : actions/download-artifact@v3
90
+ uses : actions/download-artifact@v4
90
91
with :
91
92
name : torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
92
93
path : /tmp/wheels
@@ -121,7 +122,7 @@ jobs:
121
122
env :
122
123
AGENT_TOOLSDIRECTORY : " /opt/hostedtoolcache"
123
124
- name : Checkout torchrl
124
- uses : actions/checkout@v3
125
+ uses : actions/checkout@v4
125
126
- name : Install PyTorch Nightly
126
127
run : |
127
128
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
@@ -138,7 +139,7 @@ jobs:
138
139
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
139
140
python3 -mpip install numpy pytest pillow>=4.1.1 scipy networkx expecttest pyyaml
140
141
- name : Download built wheels
141
- uses : actions/download-artifact@v3
142
+ uses : actions/download-artifact@v4
142
143
with :
143
144
name : torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
144
145
path : /tmp/wheels
@@ -179,7 +180,7 @@ jobs:
179
180
with :
180
181
python-version : ${{ matrix.python_version[1] }}
181
182
- name : Checkout torchrl
182
- uses : actions/checkout@v3
183
+ uses : actions/checkout@v4
183
184
- name : Install PyTorch nightly
184
185
shell : bash
185
186
run : |
@@ -193,7 +194,7 @@ jobs:
193
194
--package_name torchrl-nightly \
194
195
--python-tag=${{ matrix.python-tag }}
195
196
- name : Upload wheel for the test-wheel job
196
- uses : actions/upload-artifact@v3
197
+ uses : actions/upload-artifact@v4
197
198
with :
198
199
name : torchrl-win-${{ matrix.python_version[0] }}.whl
199
200
path : dist/*.whl
@@ -212,7 +213,7 @@ jobs:
212
213
with :
213
214
python-version : ${{ matrix.python_version[1] }}
214
215
- name : Checkout torchrl
215
- uses : actions/checkout@v3
216
+ uses : actions/checkout@v4
216
217
- name : Install PyTorch Nightly
217
218
shell : bash
218
219
run : |
@@ -229,7 +230,7 @@ jobs:
229
230
run : |
230
231
python3 -mpip install git+https://github.com/pytorch/tensordict.git
231
232
- name : Download built wheels
232
- uses : actions/download-artifact@v3
233
+ uses : actions/download-artifact@v4
233
234
with :
234
235
name : torchrl-win-${{ matrix.python_version[0] }}.whl
235
236
path : wheels
@@ -265,9 +266,9 @@ jobs:
265
266
python_version : [["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"], ["3.12", "3.12"]]
266
267
steps :
267
268
- name : Checkout torchrl
268
- uses : actions/checkout@v3
269
+ uses : actions/checkout@v4
269
270
- name : Download built wheels
270
- uses : actions/download-artifact@v3
271
+ uses : actions/download-artifact@v4
271
272
with :
272
273
name : torchrl-win-${{ matrix.python_version[0] }}.whl
273
274
path : wheels
0 commit comments