Skip to content

Commit a9cc6fd

Browse files
fix: implementation of dynamic python version (#37)
This PR introduces new optional parameter to the action to control the version of Python used across testing environments. Related app-of-apps PR: splunk/ta-automation-app-of-apps#29 Tests: https://github.com/splunk/splunk-add-on-for-microsoft-office-365/actions/runs/16443769270 Backward compatibility tests: splunk/splunk-add-on-for-google-workspace#634 Note: This change is not affecting current workflows execution and can be safely used with already released reusable workflow versions.
1 parent 89ae6f1 commit a9cc6fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,16 @@ inputs:
7979
required: false
8080
description: 'Initial version of the TA for upgrade tests'
8181
default: ''
82+
python-version:
83+
description: 'Python version to use for tests'
84+
required: false
85+
default: ''
8286
outputs:
8387
workflow-name: # id of output
8488
description: 'Name of workflow triggered'
8589
runs:
8690
using: 'docker'
87-
image: 'docker://ghcr.io/splunk/wfe-test-runner-action/wfe-test-runner-action:v5.1.0'
91+
image: 'Dockerfile'
8892
args:
8993
- ${{ inputs.workflow-tmpl-name }}
9094
- ${{ inputs.workflow-template-ns }}
@@ -104,3 +108,4 @@ runs:
104108
- ${{ inputs.os-version }}
105109
- ${{ inputs.test-browser }}
106110
- ${{ inputs.ta-upgrade-version }}
111+
- ${{ inputs.python-version }}

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ WORKFLOW_NAME=`argo submit -v -o json --from wftmpl/${1} -n ${2} -l workflows.ar
4242
-p os-version=${16} \
4343
-p test-browser=${17} \
4444
-p ta-upgrade-version=${18} \
45+
-p python-version=${19} \
4546
-l="${9},test-type=${6},splunk-version=${5}" | jq -r .metadata.name`
4647

4748
echo "After argo submit $?"

0 commit comments

Comments
 (0)