Skip to content

Commit

Permalink
ci: Stupid Windows support
Browse files Browse the repository at this point in the history
Resolves: #514
  • Loading branch information
jidicula committed Feb 6, 2022
1 parent 5b4fb06 commit fe11674
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/poetry-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fe11674

Please sign in to comment.