From 0a509152d16e42f3957a9b2286d5877321d0e331 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 2 Jan 2021 23:19:46 -0500 Subject: [PATCH] Revert "ci: don't install python (#8961)" (#8963) This reverts commit 5937ee3fba24dac6be99c8cb0b4c9709d4656f71. --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f4da0d9c7..f57513d3e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,12 +87,26 @@ jobs: curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.5.1 echo "$HOME/.deno/bin" >> $env:GITHUB_PATH + - name: Install Python + uses: actions/setup-python@v1 + with: + python-version: "2.7" + architecture: x64 + - name: Install Node uses: actions/setup-node@v2 with: node-version: "14" check-latest: true + - 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: Setup gcloud (unix) if: | runner.os != 'Windows' &&