Glen 7 months ago
parent
commit
f087c0ac99
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/build_and_test.yml

+ 3 - 1
.github/workflows/build_and_test.yml

@@ -29,6 +29,8 @@ jobs:
           which python3.12 || echo "python3.12 not in PATH"
           which python3.12 || echo "python3.12 not in PATH"
           # Add common Python installation locations to PATH
           # Add common Python installation locations to PATH
           export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
           export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
+          # Install jq using homebrew (since this is macOS)
+          brew install jq || brew upgrade jq
           # Now try to create the venv with explicit python3.12
           # Now try to create the venv with explicit python3.12
           python3.12 -m venv env || {
           python3.12 -m venv env || {
             echo "Failed to find python3.12. Checking installation locations:"
             echo "Failed to find python3.12. Checking installation locations:"
@@ -52,7 +54,7 @@ jobs:
           trap 'kill $TAIL1' EXIT
           trap 'kill $TAIL1' EXIT
 
 
           for i in {1..100}; do
           for i in {1..100}; do
-            nodes=$(curl http://localhost:52415/topology | $(which jq) \".nodes | length\")
+            nodes=$(curl http://localhost:52415/topology | jq ".nodes | length")
             if [ "$nodes" -eq "${{ strategy.job-total }}" ]; then
             if [ "$nodes" -eq "${{ strategy.job-total }}" ]; then
               break
               break
             fi
             fi