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 8cb2947
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/poetry-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
poetry-dev-build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
- run:
- shell: bash
strategy:
matrix:
os:
- 'ubuntu-20.04'
- '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 8cb2947

Please sign in to comment.