Skip to content

Commit

Permalink
Install poetry after setup-python on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
  • Loading branch information
lebrice committed Apr 25, 2024
1 parent eac9490 commit 4092248
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ jobs:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Install poetry (not on MacOS)
if: runner.os != 'macOS'
run: pip install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: ${{ matrix.platform != 'macos-latest' && 'poetry' || '' }}

- name: Install poetry (only on MacOS)
if: runner.os == 'macOS'
run: pip install poetry

- name: Install dependencies
run: poetry install --with=dev

Expand Down

0 comments on commit 4092248

Please sign in to comment.