Skip to content

Commit 8eff554

Browse files
committed
red-flagging builds if package build step produces warnings
1 parent 0677163 commit 8eff554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ jobs:
7070
- run: pytest -v -s -We -p no:unraisableexception tests
7171

7272
- if: matrix.platform != 'ubuntu-latest'
73-
run: python -m build
73+
run: |
74+
python -m build 2>&1 | tee build.log
75+
exit `fgrep -i warning build.log | wc -l`
7476
7577
- if: matrix.platform != 'ubuntu-latest'
7678
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)