From 2786500d81b3f2b127ce68807bd33b24e1d8b08e Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Sun, 15 Sep 2024 21:16:26 +0200 Subject: [PATCH] allow to break brew, since pip is a recommened way to install this from upstream. --- .github/workflows/R-CMD-check.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 924571063..7727e0a8e 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -54,10 +54,14 @@ jobs: - name: Install system dependencies (brew) if: matrix.config.installation_method == 'brew' run: brew install pre-commit - - name: Install system dependencies (pip) - if: matrix.config.installation_method == 'pip' + - name: Install system dependencies (pip, non-macOS) + if: matrix.config.installation_method == 'pip' && && matrix.config.os != 'macOS-latest' run: | pip3 install pre-commit --user + - name: Install system dependencies (pip, macOS) + if: matrix.config.installation_method == 'pip' && matrix.config.os == 'macOS-latest' + run: | + pip3 install pre-commit --user --break-system-packages - uses: r-lib/actions/setup-r-dependencies@v2 - name: Remove reticulate for other installation methods run: |