Skip to content

Commit f61f58b

Browse files
committed
Fix build wheels and sdist jobs' run conditions
1 parent cb54934 commit f61f58b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test_and_publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
build-wheels:
5656
name: Build wheels
5757
runs-on: ${{ matrix.os }}
58-
needs: is-duplicate
58+
needs: test-code
5959
if: |
60-
needs.is-duplicate.outputs.should_skip != 'true' &&
60+
!failure() &&
6161
startsWith(github.ref, 'refs/heads/develop')
6262
strategy:
6363
matrix:
@@ -81,9 +81,9 @@ jobs:
8181
build-sdist:
8282
name: Build source distribution
8383
runs-on: ubuntu-latest
84-
needs: is-duplicate
84+
needs: test-code
8585
if: |
86-
needs.is-duplicate.outputs.should_skip != 'true' &&
86+
!failure() &&
8787
startsWith(github.ref, 'refs/heads/develop')
8888
8989
steps:
@@ -107,7 +107,7 @@ jobs:
107107
name: Publish to TestPyPI
108108
environment: staging
109109
runs-on: ubuntu-latest
110-
needs: [test-code, build-sdist, build-wheels]
110+
needs: [build-sdist, build-wheels]
111111
if: |
112112
!failure() &&
113113
github.event_name == 'push' &&

0 commit comments

Comments
 (0)