Skip to content

Commit 440d8d9

Browse files
committed
Fail the pulse paper code test if a warning is raised
1 parent aae56c7 commit 440d8d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ jobs:
118118
- name: Test code examples for the pulse paper
119119
run: |
120120
cd pulse-paper
121-
for f in *.py; do python "$f"; done
121+
for f in *.py; do python - W error "$f"; done
122+
# '-W error' will throw an error in case any warning is raised
122123
123124
finalise:
124125
name: Finalise coverage reporting

0 commit comments

Comments
 (0)