@@ -27,10 +27,6 @@ parameters:
2727 displayName : " Post test"
2828 type : boolean
2929 default : true
30- - name : PostTestWithHangs
31- displayName : " Post tests that may hang"
32- type : boolean
33- default : true
3430- name : OverrideRef
3531 displayName : " Force version (else uses tag)"
3632 type : string
@@ -65,7 +61,7 @@ stages:
6561 - job : Build
6662
6763 pool :
68- vmImage : ' windows-2022 '
64+ vmImage : ' windows-latest '
6965
7066 variables :
7167 - ${{ if eq(parameters.TestSign, 'true') }} :
@@ -234,7 +230,6 @@ stages:
234230 - powershell : |
235231 $msix = dir "$(DIST_DIR)\*.msix" | ?{ -not ($_.BaseName -match '.+-store') } | select -first 1
236232 Add-AppxPackage $msix
237- Get-AppxPackage PythonSoftwareFoundation.PythonManager
238233 displayName: 'Install signed MSIX'
239234
240235 - ${{ else }} :
@@ -243,22 +238,29 @@ stages:
243238 cp $msix "${msix}.zip"
244239 Expand-Archive "${msix}.zip" (mkdir -Force $env:TEST_MSIX)
245240 Add-AppxPackage -Register "${env:TEST_MSIX}\appxmanifest.xml"
246- Get-AppxPackage PythonSoftwareFoundation.PythonManager
247241 displayName: 'Register unsigned MSIX'
248242 env:
249243 TEST_MSIX: $(TEST_MSIX_DIR)
250244
245+ - powershell : |
246+ $p = Get-AppxPackage PythonSoftwareFoundation.PythonManager
247+ $p
248+ Set-AppxPackageAutoUpdateSettings $p.PackageFamilyName -CheckOnLaunch $false
249+ Set-AppxPackageAutoUpdateSettings $p.PackageFamilyName -ShowPrompt $false
250+ Set-AppxPackageAutoUpdateSettings $p.PackageFamilyName -PauseUpdates -HoursToPause 1
251+ Get-AppxPackageAutoUpdateSettings $p.PackageFamilyName
252+ displayName: 'Update MSIX settings'
253+
251254 - powershell : |
252255 # Some of these are likely present due to the machine configuration,
253256 # but we'll check for them anyway.
254257 gcm pymanager, pywmanager, py, python, pyw, pythonw | Format-Table -AutoSize
255258 displayName: 'Ensure global commands are present'
256259
257- - ${{ if eq(parameters.PostTestWithHangs, 'true') }} :
258- - powershell : |
259- pymanager help
260- displayName: 'Show help output'
261- timeoutInMinutes: 1
260+ - powershell : |
261+ pymanager help
262+ displayName: 'Show help output'
263+ timeoutInMinutes: 1
262264
263265 - powershell : |
264266 pymanager install -vv default
0 commit comments