From a5de61479c33c38501d4f9031bf733af585aaf11 Mon Sep 17 00:00:00 2001 From: "Lee J. O'Riordan" Date: Fri, 13 Sep 2024 12:04:34 -0400 Subject: [PATCH] Try coerce GHA to accept the matrix values --- .github/workflows/interface-unit-tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/interface-unit-tests.yml b/.github/workflows/interface-unit-tests.yml index 4572f6feace..9650535ae2c 100644 --- a/.github/workflows/interface-unit-tests.yml +++ b/.github/workflows/interface-unit-tests.yml @@ -262,7 +262,7 @@ jobs: }} matrix: group: >- - ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) && fromJson("[1, 2, 3]") || fromJson("[1]") }} + ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) == 1 && "[1, 2, 3]" || "[1]" }} python-version: >- ${{ fromJSON(needs.setup-ci-load.outputs.python-version).tf-tests @@ -282,7 +282,7 @@ jobs: install_pennylane_lightning_master: true pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }} pytest_markers: tf and not qcut and not finite-diff and not param-shift - pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) == "1" && format('--splits {0} --group {1}', '3', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} + pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) == "1" && format('--splits {0} --group {1}', '3', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} pytest_durations_file_path: '.github/workflows/tf_tests_durations.json' pytest_store_durations: ${{ inputs.pytest_store_durations }} additional_pip_packages: pytest-split @@ -301,7 +301,7 @@ jobs: || fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default }} matrix: - group: ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) && fromJson("[1, 2, 3, 4, 5]") || fromJsom("[1]") }} + group: ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) && "[1, 2, 3, 4, 5]" || "[1]" }} python-version: >- ${{ fromJSON(needs.setup-ci-load.outputs.python-version).jax-tests @@ -321,7 +321,7 @@ jobs: install_pennylane_lightning_master: true pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }} pytest_markers: jax and not qcut and not finite-diff and not param-shift - pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) == "1" && format('--splits {0} --group {1}', '5', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} + pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) == "1" && format('--splits {0} --group {1}', '5', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} pytest_durations_file_path: '.github/workflows/jax_tests_durations.json' @@ -342,7 +342,7 @@ jobs: || fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default }} matrix: - group: ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) && fromJson("[1, 2, 3, 4, 5]") || fromJson("[1]") }} + group: ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) && "[1, 2, 3, 4, 5]" || "[1]" }} python-version: >- ${{ fromJSON(needs.setup-ci-load.outputs.python-version).core-tests @@ -362,7 +362,7 @@ jobs: install_pennylane_lightning_master: true pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }} pytest_markers: core and not qcut and not finite-diff and not param-shift - pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable-split) == "1" && format('--splits {0} --group {1}', '5', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} + pytest_additional_args: ${{ fromJSON(needs.setup-ci-load.outputs.enable_split) == "1" && format('--splits {0} --group {1}', '5', matrix.group) || format('--splits {0} --group {1}', '1', matrix.group) }} pytest_durations_file_path: '.github/workflows/core_tests_durations.json' pytest_store_durations: ${{ inputs.pytest_store_durations }} additional_pip_packages: pytest-split