Skip to content

Commit

Permalink
use the right branch for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Sep 9, 2024
1 parent 75ff181 commit 8746c2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/test-guidance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ if test -f ../guidance/tests/unit/test_ll.py ; then
else
mkdir -p tmp
cd tmp
if test -f guidance/tests/unit/test_ll.py ; then
echo "Guidance clone OK"
PYTEST_FLAGS=-v
if test -f guidance/tests/unit/test_ll.py ; then
echo "Guidance clone OK"
else
git clone -b lazy_grammars https://github.com/hudson-ai/guidance
git clone -b main https://github.com/guidance-ai/guidance
fi
cd guidance
echo "Branch: $(git branch --show-current), Remote URL: $(git remote get-url origin), HEAD: $(git rev-parse HEAD)"
fi

python -m pytest $PYTEST_FLAGS tests/unit/test_ll.py # main test
Expand Down

0 comments on commit 8746c2f

Please sign in to comment.