Skip to content

Commit 32fc18a

Browse files
committed
Merge branch 'ko3n1g/ci/make-push-optional' into 'main'
ci: Make PyPi push wheel See merge request ADLR/megatron-lm!2324
2 parents 21cfea4 + c5b5d41 commit 32fc18a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.gitlab/stages/01.test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ test:pypi_push_wheel:
316316
needs: [test:pypi_test_wheel]
317317
variables:
318318
PUBLISH_DRYRUN: "yes"
319+
timeout: 10m
319320
script:
320321
- >
321322
if [ "$PUBLISH_DRYRUN" = "yes" ]; then
@@ -332,6 +333,12 @@ test:pypi_push_wheel:
332333
for i in 1 2 3 4 5; do
333334
twine upload --verbose -u $TWINE_USERNAME -p $TWINE_PASSWORT --repository $REPOSITORY wheelhouse/* && break || sleep $(( 60*2**i ));
334335
done
336+
rules:
337+
- if: $UNIT_TEST == 'yes' && $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED != "true"
338+
allow_failure: true
339+
when: on_success
340+
- when: on_success
341+
allow_failure: true
335342

336343
test:gh_release:
337344
extends: [.test_rules]

0 commit comments

Comments
 (0)