Skip to content

Commit

Permalink
TF group check
Browse files Browse the repository at this point in the history
  • Loading branch information
mlxd committed Sep 13, 2024
1 parent ecc4383 commit 3bf4428
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/interface-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
else
export ENABLE_SPLIT='1'
fi
echo "enable_split=$ENABLE_SPLIT"
echo "enable_split=$ENABLE_SPLIT" >> $GITHUB_OUTPUT
- name: Setup Job to Skip
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
}}
matrix:
group: >-
${{ needs.setup-ci-load.outputs.enable-split == '1' && fromJSON('[1, 2, 3]') || fromJSON('[1]') }}
${{ fromJSON(needs.setup-ci-load.outputs.enable-split) == '1' && fromJSON('[1, 2, 3]') || fromJSON('[1]') }}
python-version: >-
${{
fromJSON(needs.setup-ci-load.outputs.python-version).tf-tests
Expand All @@ -276,7 +276,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: ${{ needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '3', matrix.group ) || format('--splits {0} --group {1}', '3', matrix.group ) }}
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '3', matrix.group) || '' }}
pytest_durations_file_path: '.github/workflows/tf_tests_durations.json'
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
Expand All @@ -295,7 +295,7 @@ jobs:
|| fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default
}}
matrix:
group: ${{ ( needs.setup-ci-load.outputs.enable-split == '1' && fromJSON('[1, 2, 3, 4, 5]') ) || fromJSON('[1]') }}
group: ${{ needs.setup-ci-load.outputs.enable-split == '1' && fromJSON('[1, 2, 3, 4, 5]') || fromJSON('[1]') }}
python-version: >-
${{
fromJSON(needs.setup-ci-load.outputs.python-version).jax-tests
Expand All @@ -315,7 +315,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: ${{ ( needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '5', matrix.group ) ) || needs.setup-ci-load.outputs.enable-split }}
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '5', matrix.group) || '' }}
pytest_durations_file_path: .github/workflows/jax_tests_durations.json
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
Expand Down Expand Up @@ -354,7 +354,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: ${{ needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '5', toJSON(matrix.group) ) || format('--splits {0} --group {1}', '5', toJSON(matrix.group) ) }}
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable-split == '1' && format('--splits {0} --group {1}', '5', matrix.group ) || '' }}
pytest_durations_file_path: .github/workflows/core_tests_durations.json
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
Expand Down

0 comments on commit 3bf4428

Please sign in to comment.