diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e5a8629..c8abf390 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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