7979 required : false
8080 type : boolean
8181 default : false
82+ rust_enable :
83+ description : ' Enable Rust install'
84+ required : false
85+ type : boolean
86+ default : false
87+ cancel_in_progress :
88+ type : boolean
89+ default : true
8290 timeout :
8391 description : " Timeout for each job in minutes."
8492 type : number
8593 required : false
8694 default : 60
87-
95+ python_version :
96+ type : string
97+ required : false
98+ node_version :
99+ type : string
100+ required : false
101+
88102 secrets :
89103 DATAVISYN_BOT_REPO_TOKEN :
90104 required : false
@@ -101,10 +115,10 @@ on:
101115
102116env :
103117 NPM_REGISTRY : " https://registry.npmjs.org/"
104- NODE_VERSION : " 20.9"
118+ NODE_VERSION : ${{ vars.NODE_VERSION || ' 20.9' }}
105119 PYPI_REGISTRY : " https://upload.pypi.org/legacy/"
106120 PYPI_USERNAME : " datavisyn"
107- PYTHON_VERSION : " 3.10"
121+ PYTHON_VERSION : ${{ vars.PYTHON_VERSION || ' 3.10' }}
108122 WORKFLOW_BRANCH : " main"
109123 POSTGRES_HOSTNAME : postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
110124
@@ -121,7 +135,7 @@ jobs:
121135 if : ${{ (!inputs.cypress_enable || (!inputs.cypress_run_because_flag && inputs.cypress_run_because_branch != 'true')) && (!inputs.playwright_enable || (!inputs.playwright_run_because_flag && inputs.playwright_run_because_branch != 'true')) }}
122136 concurrency :
123137 group : " node-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
124- cancel-in-progress : true
138+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
125139 permissions :
126140 id-token : write
127141 contents : write
@@ -144,10 +158,12 @@ jobs:
144158 with :
145159 enable_node : true
146160 enable_python : false
161+ # We probably won't need Rust on Node builds...
162+ # enable_rust: ${{ inputs.rust_enable }}
147163 run_parallel : ${{ inputs.run_parallel }}
148- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
164+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
149165 npm_registry : ${{ env.NPM_REGISTRY }}
150- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
166+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
151167 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
152168 run_node_bundle : ${{ inputs.node_run_webpack }}
153169 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -161,7 +177,7 @@ jobs:
161177 if : ${{ (!inputs.cypress_enable || (!inputs.cypress_run_because_flag && inputs.cypress_run_because_branch != 'true')) && (!inputs.playwright_enable || (!inputs.playwright_run_because_flag && inputs.playwright_run_because_branch != 'true')) }}
162178 concurrency :
163179 group : " python-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
164- cancel-in-progress : true
180+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
165181 permissions :
166182 id-token : write
167183 contents : write
@@ -183,10 +199,11 @@ jobs:
183199 with :
184200 enable_node : false
185201 enable_python : true
202+ enable_rust : ${{ inputs.rust_enable }}
186203 run_parallel : ${{ inputs.run_parallel }}
187- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
204+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
188205 npm_registry : ${{ env.NPM_REGISTRY }}
189- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
206+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
190207 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
191208 run_node_bundle : ${{ inputs.node_run_webpack }}
192209 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -199,7 +216,7 @@ jobs:
199216 if : ${{ inputs.cypress_enable && (inputs.cypress_run_because_flag || inputs.cypress_run_because_branch == 'true') }}
200217 concurrency :
201218 group : " node-python-cypress-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
202- cancel-in-progress : true
219+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
203220 permissions :
204221 id-token : write
205222 contents : write
@@ -273,10 +290,11 @@ jobs:
273290 - name : Build node and python
274291 uses : ./tmp/github-workflows/.github/actions/build-node-python
275292 with :
293+ enable_rust : ${{ inputs.rust_enable }}
276294 run_parallel : ${{ inputs.run_parallel }}
277- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
295+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
278296 npm_registry : ${{ env.NPM_REGISTRY }}
279- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
297+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
280298 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
281299 run_node_bundle : false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install
282300 enable_node_cache : ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
@@ -339,7 +357,7 @@ jobs:
339357 if : ${{ inputs.playwright_enable && (inputs.playwright_run_because_flag || inputs.playwright_run_because_branch == 'true') }}
340358 concurrency :
341359 group : " node-python-playwright-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
342- cancel-in-progress : true
360+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
343361 permissions :
344362 id-token : write
345363 contents : write
@@ -415,10 +433,11 @@ jobs:
415433 - name : Build node and python
416434 uses : ./tmp/github-workflows/.github/actions/build-node-python
417435 with :
436+ enable_rust : ${{ inputs.rust_enable }}
418437 run_parallel : ${{ inputs.run_parallel }}
419- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
438+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
420439 npm_registry : ${{ env.NPM_REGISTRY }}
421- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
440+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
422441 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
423442 run_node_bundle : false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install
424443 run_playwright_browser_install : true
@@ -441,12 +460,13 @@ jobs:
441460 env :
442461 VISYN_CORE__SENTRY__FRONTEND_DSN : ${{ vars.PLAYWRIGHT__VISYN_CORE__SENTRY__FRONTEND_DSN }}
443462 VISYN_CORE__SENTRY__BACKEND_DSN : ${{ vars.PLAYWRIGHT__VISYN_CORE__SENTRY__BACKEND_DSN }}
444- - name : Upload bundle
445- uses : actions/upload-artifact@v4
446- if : always()
447- with :
448- name : " bundles-${{ inputs.branch || github.sha }}"
449- path : bundles/
463+ # Disable upload of bundles as there is no real value...
464+ # - name: Upload bundle
465+ # uses: actions/upload-artifact@v4
466+ # if: always()
467+ # with:
468+ # name: "bundles-${{ inputs.branch || github.sha }}"
469+ # path: bundles/
450470 - name : Upload playwright report
451471 uses : actions/upload-artifact@v4
452472 if : always()
0 commit comments