|
1 | | -name: Run the README instructions - with stories |
| 1 | +name: Run the README instructions - with stories and new template |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | pull_request: |
@@ -35,20 +35,20 @@ jobs: |
35 | 35 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
36 | 36 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
37 | 37 | - run: | |
38 | | - echo "::group::Print machine info and try install pip and/or pip3" |
39 | | - set -x |
40 | | - which pip || true |
41 | | - which pip3 || true |
42 | | - which conda || true |
43 | | - uname -a |
44 | | - echo "::endgroup::" |
| 38 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 39 | + set -x |
| 40 | + which pip || true |
| 41 | + which pip3 || true |
| 42 | + which conda || true |
| 43 | + uname -a |
| 44 | + echo "::endgroup::" |
45 | 45 |
|
46 | | - .ci/scripts/run-docs readme |
| 46 | + . .ci/scripts/run-docs readme |
47 | 47 |
|
48 | | - echo "::group::Completion" |
49 | | - echo "tests complete" |
50 | | - echo "*******************************************" |
51 | | - echo "::endgroup::" |
| 48 | + echo "::group::Completion" |
| 49 | + echo "tests complete" |
| 50 | + echo "*******************************************" |
| 51 | + echo "::endgroup::" |
52 | 52 |
|
53 | 53 | test-readme-cpu: |
54 | 54 | strategy: |
@@ -77,20 +77,21 @@ jobs: |
77 | 77 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
78 | 78 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
79 | 79 | - run: | |
80 | | - echo "::group::Print machine info and try install pip and/or pip3" |
81 | | - set -x |
82 | | - which pip || true |
83 | | - which pip3 || true |
84 | | - which conda || true |
85 | | - uname -a |
86 | | - echo "::endgroup::" |
| 80 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 81 | + set -x |
| 82 | + which pip || true |
| 83 | + which pip3 || true |
| 84 | + which conda || true |
| 85 | + uname -a |
| 86 | + echo "::endgroup::" |
87 | 87 |
|
88 | | - TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme |
| 88 | + export TORCHCHAT_DEVICE=cpu |
| 89 | + . .ci/scripts/run-docs readme |
89 | 90 |
|
90 | | - echo "::group::Completion" |
91 | | - echo "tests complete" |
92 | | - echo "*******************************************" |
93 | | - echo "::endgroup::" |
| 91 | + echo "::group::Completion" |
| 92 | + echo "tests complete" |
| 93 | + echo "*******************************************" |
| 94 | + echo "::endgroup::" |
94 | 95 |
|
95 | 96 | test-quantization-any: |
96 | 97 | strategy: |
@@ -119,20 +120,20 @@ jobs: |
119 | 120 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
120 | 121 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
121 | 122 | - run: | |
122 | | - echo "::group::Print machine info and try install pip and/or pip3" |
123 | | - set -x |
124 | | - which pip || true |
125 | | - which pip3 || true |
126 | | - which conda || true |
127 | | - uname -a |
128 | | - echo "::endgroup::" |
| 123 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 124 | + set -x |
| 125 | + which pip || true |
| 126 | + which pip3 || true |
| 127 | + which conda || true |
| 128 | + uname -a |
| 129 | + echo "::endgroup::" |
129 | 130 |
|
130 | | - .ci/scripts/run-docs quantization |
| 131 | + . .ci/scripts/run-docs quantization |
131 | 132 |
|
132 | | - echo "::group::Completion" |
133 | | - echo "tests complete" |
134 | | - echo "*******************************************" |
135 | | - echo "::endgroup::" |
| 133 | + echo "::group::Completion" |
| 134 | + echo "tests complete" |
| 135 | + echo "*******************************************" |
| 136 | + echo "::endgroup::" |
136 | 137 |
|
137 | 138 | test-quantization-cpu: |
138 | 139 | strategy: |
@@ -161,20 +162,21 @@ jobs: |
161 | 162 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
162 | 163 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
163 | 164 | - run: | |
164 | | - echo "::group::Print machine info and try install pip and/or pip3" |
165 | | - set -x |
166 | | - which pip || true |
167 | | - which pip3 || true |
168 | | - which conda || true |
169 | | - uname -a |
170 | | - echo "::endgroup::" |
| 165 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 166 | + set -x |
| 167 | + which pip || true |
| 168 | + which pip3 || true |
| 169 | + which conda || true |
| 170 | + uname -a |
| 171 | + echo "::endgroup::" |
171 | 172 |
|
172 | | - TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization |
| 173 | + export TORCHCHAT_DEVICE=cpu |
| 174 | + . .ci/scripts/run-docs quantization |
173 | 175 |
|
174 | | - echo "::group::Completion" |
175 | | - echo "tests complete" |
176 | | - echo "*******************************************" |
177 | | - echo "::endgroup::" |
| 176 | + echo "::group::Completion" |
| 177 | + echo "tests complete" |
| 178 | + echo "*******************************************" |
| 179 | + echo "::endgroup::" |
178 | 180 |
|
179 | 181 | test-advanced-any: |
180 | 182 | strategy: |
@@ -203,20 +205,20 @@ jobs: |
203 | 205 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
204 | 206 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
205 | 207 | - run: | |
206 | | - echo "::group::Print machine info and try install pip and/or pip3" |
207 | | - set -x |
208 | | - which pip || true |
209 | | - which pip3 || true |
210 | | - which conda || true |
211 | | - uname -a |
212 | | - echo "::endgroup::" |
| 208 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 209 | + set -x |
| 210 | + which pip || true |
| 211 | + which pip3 || true |
| 212 | + which conda || true |
| 213 | + uname -a |
| 214 | + echo "::endgroup::" |
213 | 215 |
|
214 | | - .ci/scripts/run-docs advanced |
| 216 | + . .ci/scripts/run-docs advanced |
215 | 217 |
|
216 | | - echo "::group::Completion" |
217 | | - echo "tests complete" |
218 | | - echo "*******************************************" |
219 | | - echo "::endgroup::" |
| 218 | + echo "::group::Completion" |
| 219 | + echo "tests complete" |
| 220 | + echo "*******************************************" |
| 221 | + echo "::endgroup::" |
220 | 222 |
|
221 | 223 | test-advanced-cpu: |
222 | 224 | strategy: |
@@ -245,17 +247,18 @@ jobs: |
245 | 247 | python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")' |
246 | 248 | python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")' |
247 | 249 | - run: | |
248 | | - echo "::group::Print machine info and try install pip and/or pip3" |
249 | | - set -x |
250 | | - which pip || true |
251 | | - which pip3 || true |
252 | | - which conda || true |
253 | | - uname -a |
254 | | - echo "::endgroup::" |
| 250 | + echo "::group::Print machine info and try install pip and/or pip3" |
| 251 | + set -x |
| 252 | + which pip || true |
| 253 | + which pip3 || true |
| 254 | + which conda || true |
| 255 | + uname -a |
| 256 | + echo "::endgroup::" |
255 | 257 |
|
256 | | - TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced |
| 258 | + export TORCHCHAT_DEVICE=cpu |
| 259 | + . .ci/scripts/run-docs advanced |
257 | 260 |
|
258 | | - echo "::group::Completion" |
259 | | - echo "tests complete" |
260 | | - echo "*******************************************" |
261 | | - echo "::endgroup::" |
| 261 | + echo "::group::Completion" |
| 262 | + echo "tests complete" |
| 263 | + echo "*******************************************" |
| 264 | + echo "::endgroup::" |
0 commit comments