|
55 | 55 | needs: check_pr_push |
56 | 56 | if: | |
57 | 57 | always() && |
58 | | - (needs.check_pr_push.result == 'success' && needs.check_pr_push.outputs.run == 'true' || needs.check_pr_push.result == 'skipped') && |
59 | | - (github.event_name != 'pull_request' || github.event.pull_request.merged == true || github.event.action == 'opened' || github.event.action == 'synchronize') |
| 58 | + (needs.check_pr_push.result == 'success' && needs.check_pr_push.outputs.run == 'true' || |
| 59 | + needs.check_pr_push.result == 'skipped' && contains(fromJSON('["master", "dev", "development"]'), github.ref_name)) |
60 | 60 | runs-on: ${{ matrix.os }} |
61 | 61 | strategy: |
62 | 62 | fail-fast: false |
@@ -134,11 +134,8 @@ jobs: |
134 | 134 | path: python/pecos-rslib/dist/*.whl |
135 | 135 |
|
136 | 136 | test_abi3_wheels: |
137 | | - needs: [check_pr_push, build_wheels_pecos_rslib] |
138 | | - if: | |
139 | | - needs.build_wheels_pecos_rslib.result == 'success' && |
140 | | - (needs.check_pr_push.result == 'success' && needs.check_pr_push.outputs.run == 'true' || needs.check_pr_push.result == 'skipped') && |
141 | | - (github.event_name != 'pull_request' || github.event.pull_request.merged == true || github.event.action == 'opened' || github.event.action == 'synchronize') |
| 137 | + needs: build_wheels_pecos_rslib |
| 138 | + if: needs.build_wheels_pecos_rslib.result == 'success' |
142 | 139 | runs-on: ${{ matrix.platform.runner }} |
143 | 140 | strategy: |
144 | 141 | fail-fast: false |
@@ -182,11 +179,8 @@ jobs: |
182 | 179 | python -c 'import sys; print(f"Python version: {sys.version}")' |
183 | 180 |
|
184 | 181 | build_sdist_quantum_pecos: |
185 | | - needs: [check_pr_push, build_wheels_pecos_rslib] |
186 | | - if: | |
187 | | - needs.build_wheels_pecos_rslib.result == 'success' && |
188 | | - (needs.check_pr_push.result == 'success' && needs.check_pr_push.outputs.run == 'true' || needs.check_pr_push.result == 'skipped') && |
189 | | - (github.event_name != 'pull_request' || github.event.pull_request.merged == true || github.event.action == 'opened' || github.event.action == 'synchronize') |
| 182 | + needs: build_wheels_pecos_rslib |
| 183 | + if: needs.build_wheels_pecos_rslib.result == 'success' |
190 | 184 | runs-on: ubuntu-latest |
191 | 185 | steps: |
192 | 186 | - uses: actions/checkout@v4 |
@@ -235,11 +229,8 @@ jobs: |
235 | 229 | path: python/quantum-pecos/dist/*.tar.gz |
236 | 230 |
|
237 | 231 | build_wheels_quantum_pecos: |
238 | | - needs: [check_pr_push, build_wheels_pecos_rslib] |
239 | | - if: | |
240 | | - needs.build_wheels_pecos_rslib.result == 'success' && |
241 | | - (needs.check_pr_push.result == 'success' && needs.check_pr_push.outputs.run == 'true' || needs.check_pr_push.result == 'skipped') && |
242 | | - (github.event_name != 'pull_request' || github.event.pull_request.merged == true || github.event.action == 'opened' || github.event.action == 'synchronize') |
| 232 | + needs: build_wheels_pecos_rslib |
| 233 | + if: needs.build_wheels_pecos_rslib.result == 'success' |
243 | 234 | runs-on: ubuntu-latest |
244 | 235 |
|
245 | 236 | steps: |
|
0 commit comments