diff --git a/.github/workflows/poetry-dev.yml b/.github/workflows/poetry-dev.yml index 91f8c8d8..994c3c29 100644 --- a/.github/workflows/poetry-dev.yml +++ b/.github/workflows/poetry-dev.yml @@ -19,8 +19,8 @@ jobs: poetry-dev-build: runs-on: ${{ matrix.os }} defaults: - run: - shell: bash +- run: +- shell: bash strategy: matrix: os: @@ -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