Skip to content

Commit 5a449a4

Browse files
committed
CI: Gate PyPI deployment on test suite passing
1 parent d6cc32b commit 5a449a4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build_deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- published
77

88
jobs:
9+
test:
10+
uses: ./.github/workflows/test_pyqt5.yml
11+
912
build_wheels:
1013
name: Build wheels on ${{ matrix.os }}
1114
runs-on: ${{ matrix.os }}
@@ -54,7 +57,7 @@ jobs:
5457
path: dist/*.tar.gz
5558

5659
upload_pypi:
57-
needs: [build_wheels, build_sdist]
60+
needs: [test, build_wheels, build_sdist]
5861
runs-on: ubuntu-latest
5962
environment: pypi
6063
permissions:

.github/workflows/test_pyqt5.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
branches: [ "master", "develop", "release" ]
1111
pull_request:
1212
branches: [ "master", "develop", "release" ]
13+
workflow_call:
1314

1415
jobs:
1516
build:

0 commit comments

Comments
 (0)