Skip to content

Commit c99a712

Browse files
committed
Add purge to test run
1 parent 2b50aaf commit c99a712

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,20 @@ jobs:
182182
PYMANAGER_DEBUG: true
183183
shell: powershell
184184

185+
- name: 'Test purge'
186+
run: |
187+
$env:PYTHON_MANAGER_CONFIG = (gi $env:PYTHON_MANAGER_CONFIG).FullName
188+
pymanager uninstall --purge -y
189+
if (Test-Path test_installs) {
190+
dir -r test_installs
191+
} else {
192+
Write-Host "test_installs directory has been deleted"
193+
}
194+
env:
195+
PYTHON_MANAGER_INCLUDE_UNMANAGED: false
196+
PYTHON_MANAGER_CONFIG: .\test-config.json
197+
PYMANAGER_DEBUG: true
198+
185199
- name: 'Offline bundle download and install'
186200
run: |
187201
pymanager list --online 3 3-32 3-64 3-arm64

ci/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,21 @@ stages:
323323
PYTHON_MANAGER_CONFIG: .\test-config.json
324324
PYMANAGER_DEBUG: true
325325
326+
- powershell: |
327+
$env:PYTHON_MANAGER_CONFIG = (gi $env:PYTHON_MANAGER_CONFIG).FullName
328+
pymanager uninstall --purge -y
329+
if (Test-Path test_installs) {
330+
dir -r test_installs
331+
} else {
332+
Write-Host "test_installs directory has been deleted"
333+
}
334+
displayName: 'Test purge'
335+
timeoutInMinutes: 5
336+
env:
337+
PYTHON_MANAGER_INCLUDE_UNMANAGED: false
338+
PYTHON_MANAGER_CONFIG: .\test-config.json
339+
PYMANAGER_DEBUG: true
340+
326341
- powershell: |
327342
pymanager list --online 3 3-32 3-64 3-arm64
328343
pymanager install --download .\bundle 3 3-32 3-64 3-arm64

0 commit comments

Comments
 (0)