Skip to content

Commit

Permalink
Add 23.9 / 3.12 to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed Feb 21, 2024
1 parent a104554 commit d8071f2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/ci/build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ json='{
for py_ver in "${python_version[@]}"; do
for os_type in "${os[@]}"; do
for pybamm_ver in "${pybamm_version[@]}"; do
json+='{
"os": "'$os_type'",
"python_version": "'$py_ver'",
"pybamm_version": "'$pybamm_ver'"
},'
json+='{
"os": "'$os_type'",
"python_version": "'$py_ver'",
"pybamm_version": "'$pybamm_ver'"
},'
done
done
done
Expand All @@ -41,4 +41,7 @@ json+='
}'

# Filter out incompatible combinations
echo "$json" | jq -c 'del(.include[] | select(.pybamm_version == "23.5" and .python_version == "3.12"))'
json=$(echo "$json" | jq -c 'del(.include[] | select(.pybamm_version == "23.5" and .python_version == "3.12"))')
json=$(echo "$json" | jq -c 'del(.include[] | select(.pybamm_version == "23.9" and .python_version == "3.12"))')

echo "$json" | jq -c .

0 comments on commit d8071f2

Please sign in to comment.