Skip to content

Commit 2479b32

Browse files
authored
Update test.yml
1 parent b034b0c commit 2479b32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Test Suite
22

33
on:
44
push:
5-
branches: [ main ] # Only run on pushes to main (not feature branches)
65
pull_request:
76
branches: [ main ] # Run on PRs to main to test the merge result
87
workflow_dispatch:
@@ -276,12 +275,14 @@ to fix Python code formatting issues detected by Black."
276275

277276
- name: Report formatting status
278277
run: |
279-
if [ "${{ steps.action_black.outputs.is_formatted }}" == "true" ]; then
278+
if [ "$IS_FORMATTED" == "true" ]; then
280279
echo "✅ Formatting issues detected and auto-fix PR created!"
281280
echo "📝 Check the 'Pull requests' tab for the auto-generated formatting fix."
282281
else
283282
echo "✅ All Python code is properly formatted!"
284283
fi
284+
env:
285+
IS_FORMATTED: ${{ steps.action_black.outputs.is_formatted }}
285286

286287
test-installation:
287288
name: Test Package Installation

0 commit comments

Comments
 (0)