diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 48865542..9aedca62 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -28,8 +28,22 @@ jobs: with: github_token: ${{ github.token }} permission: write + - name: Set Default Permission Output + if: ${{ failure() }} + run: echo "::set-output name=permitted::false" + - name: Debug Information + run: | + echo "Event Name: ${{ github.event_name }}" + echo "Labels: ${{ toJson(github.event.pull_request.labels) }}" + echo "Permitted: ${{ steps.check.outputs.permitted }}" + echo "${{ github.event_name == 'pull_request_target' }}" + echo "${{ !contains(github.event.pull_request.labels.*.name, 'safe to test') }}" + echo "${{ steps.check.outputs.permitted == 'false' }}" + echo "Safe to Test Label Present: ${{ contains(github.event.pull_request.labels.*.name, 'safe to test') }}" + echo "Condition Evaluation: ${{ github.event_name == 'pull_request_target' && !contains(github.event.pull_request.labels.*.name, 'safe to test') && steps.check.outputs.permitted=='false' }}" + if: ${{ github.event_name == 'pull_request_target' }} - name: Check PR Safe to Run - if: ${{ github.event_name == 'pull_request_target' && (contains(github.event.pull_request.labels.*.name, 'safe to test') == 'false') && steps.check.outputs.permitted == 'false' }} + if: ${{ github.event_name == 'pull_request_target' && !contains(github.event.pull_request.labels.*.name, 'safe to test') && steps.check.outputs.permitted=='false' }} run: exit 1 - name: Remove Safe to Test Label # One commit is safe doesn't mean the next commit is safe. if: ${{ github.event_name == 'pull_request_target' }} @@ -335,4 +349,4 @@ jobs: issue-number: ${{ github.event.number }} body: | Job PR-${{ github.event.number }}-${{ env.SHORT_SHA }} is done. - Docs are uploaded to https://d12sc05jpx1wj5.cloudfront.net/PR-${{ github.event.number }}/${{ env.SHORT_SHA }}/index.html \ No newline at end of file + Docs are uploaded to https://d12sc05jpx1wj5.cloudfront.net/PR-${{ github.event.number }}/${{ env.SHORT_SHA }}/index.html diff --git a/README.md b/README.md index 03be94d5..de14f200 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,5 @@ result = cloud_predictor.predict_real_time(test_data) cloud_predictor.cleanup_deployment() # Batch inference result = cloud_predictor.predict(test_data) + ``` diff --git a/setup.py b/setup.py index 46411388..37af7d04 100644 --- a/setup.py +++ b/setup.py @@ -112,7 +112,7 @@ def default_setup_args(*, version): "autogluon.common>=0.7", # <2 because unlikely to introduce breaking changes in minor releases. >=1.10 because 1.10 is 3 years old, no need to support older "boto3>=1.10,<2.0", - "packaging>=23.0,<24.0", + "packaging>=23.0,<25.0", # updated sagemaker is required to fetch latest container info, so we don't want to cap the version too strict # otherwise cloud module needs to be released to support new container "sagemaker>=2.126.0,<3.0",