Commit 29d47b0
authored
resolves CI's drive-out-of-space by prune caching and use torch fro CPU (#8673)
This pull request simplifies the caching setup for pip dependencies in
the GitHub Actions workflow and ensures that all pip installs use the
PyTorch CPU wheel index. The main changes involve replacing custom cache
steps with the built-in `cache: 'pip'` option in `actions/setup-python`,
and adding the `--extra-index-url` flag to all relevant pip install
commands for consistent dependency resolution.
**Workflow caching improvements:**
* Replaced custom pip cache steps (using `actions/cache` and manual
timestamp keys) with the built-in `cache: 'pip'` option in
`actions/setup-python`, streamlining cache management across all jobs.
[[1]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL36-R36)
[[2]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbR69-L93)
[[3]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL139-R127)
[[4]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL221-R194)
**Dependency installation updates:**
* Updated all `pip install` commands to include `--extra-index-url
https://download.pytorch.org/whl/cpu`, ensuring that PyTorch and related
packages are consistently installed from the CPU wheel index. This
affects installation from wheels, tarballs, requirements files, and
direct package installs.
[[1]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL139-R127)
[[2]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL187-R156)
[[3]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL198-R167)
[[4]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL208-R177)
[[5]](diffhunk://#diff-cbf97851bdfebccf2fcdd8848c6a93adb8d8affd5c6b1faf00238d528c3ef6cbL221-R194)
---------
Signed-off-by: jirka <[email protected]>1 parent 15fd428 commit 29d47b0
2 files changed
+10
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 36 | + | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
| |||
75 | 66 | | |
76 | 67 | | |
77 | 68 | | |
| 69 | + | |
78 | 70 | | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 74 | | |
95 | 75 | | |
96 | 76 | | |
| |||
136 | 116 | | |
137 | 117 | | |
138 | 118 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 119 | + | |
151 | 120 | | |
152 | 121 | | |
153 | 122 | | |
154 | 123 | | |
155 | 124 | | |
156 | 125 | | |
157 | 126 | | |
158 | | - | |
| 127 | + | |
159 | 128 | | |
160 | 129 | | |
161 | 130 | | |
| |||
184 | 153 | | |
185 | 154 | | |
186 | 155 | | |
187 | | - | |
| 156 | + | |
188 | 157 | | |
189 | 158 | | |
190 | 159 | | |
| |||
195 | 164 | | |
196 | 165 | | |
197 | 166 | | |
198 | | - | |
| 167 | + | |
199 | 168 | | |
200 | 169 | | |
201 | 170 | | |
| |||
205 | 174 | | |
206 | 175 | | |
207 | 176 | | |
208 | | - | |
| 177 | + | |
209 | 178 | | |
210 | 179 | | |
211 | 180 | | |
| |||
218 | 187 | | |
219 | 188 | | |
220 | 189 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 190 | + | |
233 | 191 | | |
234 | 192 | | |
235 | 193 | | |
236 | | - | |
| 194 | + | |
237 | 195 | | |
238 | 196 | | |
239 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
0 commit comments