Skip to content

Commit a9571e9

Browse files
committed
Fix install check workflow script syntax
1 parent 4a9532c commit a9571e9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/install_check.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ jobs:
3333
# Change directory to ensure we test the installed package, not the local source
3434
mkdir test_install
3535
cd test_install
36-
python -c "
36+
cat <<EOF > verify.py
3737
import delayed_assert
38+
import sys
3839
print(f'Successfully imported delayed_assert from {delayed_assert.__file__}')
3940
from delayed_assert import expect, assert_expectations
40-
expect(1 == 1)
41-
assert_expectations()
42-
print('Basic functionality verification passed')
43-
"
41+
try:
42+
expect(1 == 1)
43+
assert_expectations()
44+
print('Basic functionality verification passed')
45+
except Exception as e:
46+
print(f'Failed: {e}')
47+
sys.exit(1)
48+
EOF
49+
python verify.py

0 commit comments

Comments
 (0)