37
37
ProtonBuildDir : ${{github.workspace}}/qpid-proton/build
38
38
DispatchBuildDir : ${{github.workspace}}/qpid-dispatch/build
39
39
InstallPrefix : ${{github.workspace}}/install
40
+ # ternary in GHA: https://github.com/actions/runner/issues/409#issuecomment-752775072
41
+ PythonVersion : " ${{ matrix.protonGitRef == 'main' && 3.9 || 3.8 }}"
40
42
VERBOSE : 1
41
43
42
44
ProtonCMakeExtraArgs : >
@@ -97,10 +99,10 @@ jobs:
97
99
- name : Create Build and Install directories
98
100
run : mkdir -p "${ProtonBuildDir}" "${DispatchBuildDir}" "${InstallPrefix}"
99
101
100
- - name : Setup python
102
+ - name : Setup python ${{ env.PythonVersion }}
101
103
uses : actions/setup-python@v4
102
104
with :
103
- python-version : 3.8
105
+ python-version : ${{ env.PythonVersion }}
104
106
architecture : x64
105
107
106
108
- name : Install Python build dependencies
@@ -184,6 +186,8 @@ jobs:
184
186
ProtonBuildDir : ${{github.workspace}}/qpid-proton/build
185
187
DispatchBuildDir : ${{github.workspace}}/qpid-dispatch/build
186
188
InstallPrefix : ${{github.workspace}}/install
189
+ # ternary in GHA: https://github.com/actions/runner/issues/409#issuecomment-752775072
190
+ PythonVersion : " ${{ matrix.protonGitRef == 'main' && 3.9 || 3.8 }}"
187
191
# TODO(DISPATCH-2078) re-enable system_tests_authz_service_plugin when the GHA failure is understood and fixed
188
192
DispatchCTestExtraArgs : " -E 'system_tests_authz_service_plugin'"
189
193
LD_LIBRARY_PATH : ${{github.workspace}}/install/lib
@@ -200,10 +204,10 @@ jobs:
200
204
with :
201
205
name : qpid_dispatch_wrk_${{matrix.os}}_${{matrix.buildType}}_${{matrix.runtimeCheck}}_${{matrix.protonGitRef}}
202
206
203
- - name : Setup python
207
+ - name : Setup python ${{ env.PythonVersion }}
204
208
uses : actions/setup-python@v4
205
209
with :
206
- python-version : 3.8
210
+ python-version : ${{ env.PythonVersion }}
207
211
architecture : x64
208
212
209
213
- name : Install Python runtime/test dependencies
0 commit comments