Skip to content

Commit

Permalink
Fix issues with macOS in CI (#120)
Browse files Browse the repository at this point in the history
* Try to fix poetry + setup-python issues on MacOS

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>

* Install poetry with pipx instead of pip

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>

* Install poetry after setup-python on MacOS

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>

---------

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
  • Loading branch information
lebrice authored Apr 25, 2024
1 parent 95185f1 commit 320be40
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ jobs:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip 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: poetry
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 320be40

Please sign in to comment.