summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bbdf02d57..71a631153 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -59,6 +59,14 @@ jobs:
python-version: "2.7.16"
architecture: x64
+ - name: Remove unused versions of Python
+ if: startsWith(matrix.os, 'windows')
+ run: |-
+ $env:PATH -split ";" |
+ Where-Object { Test-Path "$_\python.exe" } |
+ Select-Object -Skip 1 |
+ ForEach-Object { Move-Item "$_" "$_.disabled" }
+
- name: Environment (common)
run: |
echo ::set-env name=GH_ACTIONS::1