Skip to content

Commit e34f32a

Browse files
committed
Try another way to use the debug flag
1 parent ad50c8b commit e34f32a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci-nightly-build-test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ env:
6464
test --test_timeout=6000
6565
test --test_verbose_timeout_warnings
6666
67-
# Equivalent to doing 'set -x' in shell scripts.
68-
SHELLOPTS: ${{inputs.debug && 'xtrace'}}
69-
7067
concurrency:
7168
# Cancel any previously-started but still active runs on the same branch.
7269
cancel-in-progress: true
@@ -116,6 +113,10 @@ jobs:
116113
repository-cache: true
117114
bazelrc: ${{env.bazelrc_additions}}
118115

116+
- name: Turn on debug tracing
117+
if: inputs.debug || runner.debug
118+
run: set -x
119+
119120
- name: Build wheel
120121
run: ./scripts/build_pip_package_test.sh
121122

.github/workflows/ci-nightly-cirq-test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ env:
4949
build --verbose_failures
5050
test --test_timeout=3000
5151
52-
# Equivalent to doing 'set -x' in shell scripts.
53-
SHELLOPTS: ${{inputs.debug && 'xtrace'}}
54-
5552
concurrency:
5653
# Cancel any previously-started but still active runs on the same branch.
5754
cancel-in-progress: true
@@ -86,6 +83,10 @@ jobs:
8683
- name: Install TensorFlow Quantum dependencies
8784
run: pip install -r requirements.txt
8885

86+
- name: Turn on debug tracing
87+
if: inputs.debug || runner.debug
88+
run: set -x
89+
8990
- name: Install the nightly build version of Cirq
9091
run: |
9192
echo 'numpy<2.0.0' > constraint.txt

0 commit comments

Comments
 (0)