Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit de6eb7e

Browse files
authored
Update run-readme-pr.yml
indentation fixup
1 parent ee35cd4 commit de6eb7e

File tree

1 file changed

+76
-73
lines changed

1 file changed

+76
-73
lines changed

.github/workflows/run-readme-pr.yml

Lines changed: 76 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run the README instructions - with stories
1+
name: Run the README instructions - with stories and new template
22

33
on:
44
pull_request:
@@ -35,20 +35,20 @@ jobs:
3535
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
3636
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
3737
- 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::"
4545
46-
.ci/scripts/run-docs readme
46+
. .ci/scripts/run-docs readme
4747
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::"
5252
5353
test-readme-cpu:
5454
strategy:
@@ -77,20 +77,21 @@ jobs:
7777
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
7878
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
7979
- 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::"
8787
88-
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs readme
88+
export TORCHCHAT_DEVICE=cpu
89+
. .ci/scripts/run-docs readme
8990
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::"
9495
9596
test-quantization-any:
9697
strategy:
@@ -119,20 +120,20 @@ jobs:
119120
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
120121
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
121122
- 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::"
129130
130-
.ci/scripts/run-docs quantization
131+
. .ci/scripts/run-docs quantization
131132
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::"
136137
137138
test-quantization-cpu:
138139
strategy:
@@ -161,20 +162,21 @@ jobs:
161162
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
162163
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
163164
- 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::"
171172
172-
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs quantization
173+
export TORCHCHAT_DEVICE=cpu
174+
. .ci/scripts/run-docs quantization
173175
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::"
178180
179181
test-advanced-any:
180182
strategy:
@@ -203,20 +205,20 @@ jobs:
203205
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
204206
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
205207
- 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::"
213215
214-
.ci/scripts/run-docs advanced
216+
. .ci/scripts/run-docs advanced
215217
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::"
220222
221223
test-advanced-cpu:
222224
strategy:
@@ -245,17 +247,18 @@ jobs:
245247
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
246248
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
247249
- 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::"
255257
256-
TORCHCHAT_DEVICE=cpu .ci/scripts/run-docs advanced
258+
export TORCHCHAT_DEVICE=cpu
259+
. .ci/scripts/run-docs advanced
257260
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

Comments
 (0)