From fe11674dbaa7a7f18897bd5d48276149d85d127f Mon Sep 17 00:00:00 2001 From: jidicula Date: Sun, 6 Feb 2022 13:21:03 -0500 Subject: [PATCH] ci: Stupid Windows support Resolves: #514 --- .github/workflows/poetry-dev.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/poetry-dev.yml b/.github/workflows/poetry-dev.yml index 91f8c8d8..76bf389c 100644 --- a/.github/workflows/poetry-dev.yml +++ b/.github/workflows/poetry-dev.yml @@ -28,7 +28,7 @@ jobs: - 'ubuntu-18.04' # - 'macos-10.15' - 'macos-11.0' - - 'windows-2019' + - 'windows-latest' python-version: - '3.10' fail-fast: false @@ -40,9 +40,18 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install latest version of Poetry for Windows + if: matrix.os == 'windows-latest' + run: (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python - - name: Install latest version of Poetry + if: matrix.os != 'windows-latest' run: curl -sSL https://install.python-poetry.org | python3 - - - name: Add Poetry to $PATH + - name: Add Poetry to PATH on Windows + if: matrix.os == 'windows-latest' + run: | + echo "%APPDATA%\Python\Scripts" >> $GITHUB_PATH + - name: Add Poetry to PATH + if: matrix.os != 'windows-latest' run: | echo "$HOME/.local/bin" >> $GITHUB_PATH