File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 required : false
3434 default : ' '
3535 type : string
36+ skip-tests :
37+ description : ' Skip tests before publishing'
38+ required : false
39+ default : false
40+ type : boolean
3641
3742permissions :
3843 contents : write
4752 IS_CLI : ${{ contains(github.event.pull_request.labels.*.name, 'cli-rc') || (github.event_name == 'workflow_dispatch' && github.event.inputs.cli == 'true') }}
4853 IS_PYTHON : ${{ contains(github.event.pull_request.labels.*.name, 'python-rc') || (github.event_name == 'workflow_dispatch' && github.event.inputs.python-sdk == 'true') }}
4954 PUBLISH_TAG : ${{ github.event.inputs.tag || 'rc' }}
55+ SKIP_TESTS : ${{ github.event.inputs.skip-tests == 'true' }}
5056
5157 steps :
5258 - name : Sanitize preid
@@ -109,7 +115,7 @@ jobs:
109115 installer-parallel : true
110116
111117 - name : Test Python SDK
112- if : ${{ env.IS_PYTHON == 'true' }}
118+ if : ${{ env.IS_PYTHON == 'true' && env.SKIP_TESTS != 'true' }}
113119 working-directory : packages/python-sdk
114120 run : |
115121 poetry install
@@ -134,7 +140,7 @@ jobs:
134140
135141 - name : Test JS SDK
136142 working-directory : packages/js-sdk
137- if : ${{ env.IS_JS == 'true' }}
143+ if : ${{ env.IS_JS == 'true' && env.SKIP_TESTS != 'true' }}
138144 run : |
139145 pnpm run test
140146 env :
You can’t perform that action at this time.
0 commit comments