Skip to content

Commit e90d199

Browse files
committed
allow skipping tests for release candidates
1 parent 5cc2c8a commit e90d199

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release_candidates.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ on:
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

3742
permissions:
3843
contents: write
@@ -47,6 +52,7 @@ jobs:
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:

0 commit comments

Comments
 (0)