File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 8
8
required : true
9
9
skip-tests :
10
10
description : ' Skip PROD Test (Do not do this unless there is an emergency)'
11
- default : ' false'
12
- required : true
13
- type : choice
14
- options :
15
- - false
16
- - true
11
+ default : false
12
+ type : boolean
17
13
18
14
19
15
concurrency :
52
48
name : build
53
49
path : ./dist
54
50
test-build :
55
- if : ${{ inputs.skip-tests }} != "true"
51
+ if : ${{ ! inputs.skip-tests }}
56
52
needs : ['build']
57
53
runs-on : ubuntu-latest
58
54
strategy :
@@ -121,7 +117,10 @@ jobs:
121
117
rye run pytest tests/data
122
118
pypi-publish :
123
119
runs-on : ubuntu-latest
124
- needs : ['test-build']
120
+ needs : ['build', 'test-build']
121
+ if : |
122
+ always() &&
123
+ (needs.test-build.result == 'success' || needs.test-build.result == 'skipped') && github.event.inputs.tag
125
124
environment :
126
125
name : publish
127
126
url : ' https://pypi.org/project/labelbox/'
@@ -138,7 +137,10 @@ jobs:
138
137
packages-dir : artifact/
139
138
container-publish :
140
139
runs-on : ubuntu-latest
141
- needs : ['test-build']
140
+ needs : ['build', 'test-build']
141
+ if : |
142
+ always() &&
143
+ (needs.test-build.result == 'success' || needs.test-build.result == 'skipped') && github.event.inputs.tag
142
144
env :
143
145
CONTAINER_IMAGE : " ghcr.io/${{ github.repository }}"
144
146
steps :
You can’t perform that action at this time.
0 commit comments