From f087c0ac992f01dd88eab9ffa8af4de3f0f4bf16 Mon Sep 17 00:00:00 2001 From: Glen Date: Fri, 6 Dec 2024 21:39:33 +0000 Subject: [PATCH] fix --- .github/workflows/build_and_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 0ecdbf4d..e7ea6d3a 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -29,6 +29,8 @@ jobs: which python3.12 || echo "python3.12 not in PATH" # Add common Python installation locations to 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 python3.12 -m venv env || { echo "Failed to find python3.12. Checking installation locations:" @@ -52,7 +54,7 @@ jobs: trap 'kill $TAIL1' EXIT 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 break fi