8484 required : false
8585 type : boolean
8686 default : false
87+ cancel_in_progress :
88+ type : boolean
89+ default : true
8790 timeout :
8891 description : " Timeout for each job in minutes."
8992 type : number
9093 required : false
9194 default : 60
92-
95+ python_version :
96+ type : string
97+ required : false
98+ node_version :
99+ type : string
100+ required : false
101+
93102 secrets :
94103 DATAVISYN_BOT_REPO_TOKEN :
95104 required : false
@@ -106,10 +115,10 @@ on:
106115
107116env :
108117 NPM_REGISTRY : " https://registry.npmjs.org/"
109- NODE_VERSION : " 20.9"
118+ NODE_VERSION : ${{ vars.NODE_VERSION || ' 20.9' }}
110119 PYPI_REGISTRY : " https://upload.pypi.org/legacy/"
111120 PYPI_USERNAME : " datavisyn"
112- PYTHON_VERSION : " 3.10"
121+ PYTHON_VERSION : ${{ vars.PYTHON_VERSION || ' 3.10' }}
113122 WORKFLOW_BRANCH : " main"
114123 POSTGRES_HOSTNAME : postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
115124
@@ -126,7 +135,7 @@ jobs:
126135 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')) }}
127136 concurrency :
128137 group : " node-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
129- cancel-in-progress : true
138+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
130139 permissions :
131140 id-token : write
132141 contents : write
@@ -152,9 +161,9 @@ jobs:
152161 # We probably won't need Rust on Node builds...
153162 # enable_rust: ${{ inputs.rust_enable }}
154163 run_parallel : ${{ inputs.run_parallel }}
155- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
164+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
156165 npm_registry : ${{ env.NPM_REGISTRY }}
157- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
166+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
158167 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
159168 run_node_bundle : ${{ inputs.node_run_webpack }}
160169 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -168,7 +177,7 @@ jobs:
168177 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')) }}
169178 concurrency :
170179 group : " python-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
171- cancel-in-progress : true
180+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
172181 permissions :
173182 id-token : write
174183 contents : write
@@ -192,9 +201,9 @@ jobs:
192201 enable_python : true
193202 enable_rust : ${{ inputs.rust_enable }}
194203 run_parallel : ${{ inputs.run_parallel }}
195- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
204+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
196205 npm_registry : ${{ env.NPM_REGISTRY }}
197- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
206+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
198207 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
199208 run_node_bundle : ${{ inputs.node_run_webpack }}
200209 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -207,7 +216,7 @@ jobs:
207216 if : ${{ inputs.cypress_enable && (inputs.cypress_run_because_flag || inputs.cypress_run_because_branch == 'true') }}
208217 concurrency :
209218 group : " node-python-cypress-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
210- cancel-in-progress : true
219+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
211220 permissions :
212221 id-token : write
213222 contents : write
@@ -283,9 +292,9 @@ jobs:
283292 with :
284293 enable_rust : ${{ inputs.rust_enable }}
285294 run_parallel : ${{ inputs.run_parallel }}
286- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
295+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
287296 npm_registry : ${{ env.NPM_REGISTRY }}
288- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
297+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
289298 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
290299 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
291300 enable_node_cache : ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
@@ -348,7 +357,7 @@ jobs:
348357 if : ${{ inputs.playwright_enable && (inputs.playwright_run_because_flag || inputs.playwright_run_because_branch == 'true') }}
349358 concurrency :
350359 group : " node-python-playwright-${{ github.workflow }}-${{ github.ref || github.head_ref }}-${{ inputs.branch }}"
351- cancel-in-progress : true
360+ cancel-in-progress : ${{ inputs.cancel_in_progress }}
352361 permissions :
353362 id-token : write
354363 contents : write
@@ -426,9 +435,9 @@ jobs:
426435 with :
427436 enable_rust : ${{ inputs.rust_enable }}
428437 run_parallel : ${{ inputs.run_parallel }}
429- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
438+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
430439 npm_registry : ${{ env.NPM_REGISTRY }}
431- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
440+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
432441 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
433442 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
434443 run_playwright_browser_install : true
@@ -451,12 +460,13 @@ jobs:
451460 env :
452461 VISYN_CORE__SENTRY__FRONTEND_DSN : ${{ vars.PLAYWRIGHT__VISYN_CORE__SENTRY__FRONTEND_DSN }}
453462 VISYN_CORE__SENTRY__BACKEND_DSN : ${{ vars.PLAYWRIGHT__VISYN_CORE__SENTRY__BACKEND_DSN }}
454- - name : Upload bundle
455- uses : actions/upload-artifact@v4
456- if : always()
457- with :
458- name : " bundles-${{ inputs.branch || github.sha }}"
459- 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/
460470 - name : Upload playwright report
461471 uses : actions/upload-artifact@v4
462472 if : always()
0 commit comments