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

Commit dca1d0c

Browse files
authored
Update run-docs to include run native
run docs/native-execution.md commands during execution
1 parent fff956c commit dca1d0c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.ci/scripts/run-docs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fi
9595
if [ "$1" == "multimodal" ]; then
9696

9797
# Expecting that this might fail this test as-is, because
98-
# it's the first on-pr test depending on githib secrets for access with HF token access
98+
# it's the first on-pr test depending on github secrets for access with HF token access
9999

100100
echo "::group::Create script to run multimodal"
101101
python3 torchchat/utils/scripts/updown.py --file docs/multimodal.md > ./run-multimodal.sh
@@ -111,3 +111,20 @@ if [ "$1" == "multimodal" ]; then
111111
bash -x ./run-multimodal.sh
112112
echo "::endgroup::"
113113
fi
114+
115+
if [ "$1" == "native" ]; then
116+
117+
echo "::group::Create script to run native-execution"
118+
python3 torchchat/utils/scripts/updown.py --file docs/native-execution.md > ./run-native.sh
119+
# for good measure, if something happened to updown processor,
120+
# and it did not error out, fail with an exit 1
121+
echo "exit 1" >> ./run-native.sh
122+
echo "::endgroup::"
123+
124+
echo "::group::Run native-execution"
125+
echo "*******************************************"
126+
cat ./run-native.sh
127+
echo "*******************************************"
128+
bash -x ./run-native.sh
129+
echo "::endgroup::"
130+
fi

0 commit comments

Comments
 (0)