From 33495feadddb54f4b77304b6b089b89c69feca7e Mon Sep 17 00:00:00 2001 From: "Lee J. O'Riordan" Date: Fri, 13 Sep 2024 17:18:54 -0400 Subject: [PATCH] Enable debug logging --- .github/workflows/interface-unit-tests.yml | 16 ++++++++++++++-- .github/workflows/unit-test.yml | 1 - 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/interface-unit-tests.yml b/.github/workflows/interface-unit-tests.yml index 333fd6d93d4..1bf7685cfbd 100644 --- a/.github/workflows/interface-unit-tests.yml +++ b/.github/workflows/interface-unit-tests.yml @@ -56,6 +56,9 @@ on: jobs: setup-ci-load: runs-on: ubuntu-latest + env: + ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true steps: - name: Setup Python Versions @@ -179,6 +182,9 @@ jobs: enable-split: ${{ steps.jobs_to_skip.outputs.enable_split }} torch-tests: + env: + ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true needs: - setup-ci-load strategy: @@ -246,6 +252,9 @@ jobs: tf-tests: + env: + ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true needs: - setup-ci-load strategy: @@ -256,7 +265,7 @@ jobs: }} matrix: group: >- - ${{ fromJSON(needs.setup-ci-load.outputs.enable-split).tf-tests == '1' && fromJSON('[1, 2, 3]') || fromJSON('[1]') }} + ${{ 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 @@ -276,7 +285,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).tf-tests == '1' && 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 @@ -286,6 +295,9 @@ jobs: jax-tests: + env: + ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true needs: - setup-ci-load strategy: diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index d671dbe5382..4631e03d441 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -183,7 +183,6 @@ jobs: PYTEST_DURATIONS_ARGS: ${{ inputs.pytest_durations_file_path != '' && format('--durations-path="{0}"', inputs.pytest_durations_file_path) || '' }} PYTEST_STORE_ARGS: ${{ inputs.pytest_store_durations == true && '--store-durations --clean-durations' || '' }} run: | - echo "PYTEST_ADDITIONAL_ARGS=${PYTEST_ADDITIONAL_ARGS}" if [[ "$PIPELINE_MODE" =~ .*"benchmarks".* ]]; then echo "args=$PYTEST_BENCHMARKS_ARGS $PYTEST_ADDITIONAL_ARGS" >> $GITHUB_OUTPUT elif [[ "$PIPELINE_MODE" =~ .*"warnings".* ]]; then