Skip to content

Commit

Permalink
Enable debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mlxd committed Sep 13, 2024
1 parent 3258d2c commit 33495fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/interface-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -246,6 +252,9 @@ jobs:


tf-tests:
env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
needs:
- setup-ci-load
strategy:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -286,6 +295,9 @@ jobs:


jax-tests:
env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
needs:
- setup-ci-load
strategy:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33495fe

Please sign in to comment.