From 05767cb3c7c757e9d9becdd5d0ebfc57fa16cc72 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 15 Feb 2025 18:40:52 +0900 Subject: [PATCH] ci: fix mac rule --- .github/workflows/buildtest.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index a1a7e4c..50660c1 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -55,7 +55,11 @@ jobs: source venv/bin/activate - name: Install pip run: | - python3 -m pip install -U pip + if [ "${{ matrix.os }}" = "macos-latest" ]; then + pip3 install -U pip --break-system-packages + else + pip3 install -U pip + fi - name: Get pip cache id: pip-cache run: | @@ -69,7 +73,11 @@ jobs: ${{ runner.os }}-pip- - name: Setup cached item run: | - python3 -m pip install -r requirements.txt + if [ "${{ matrix.os }}" = "macos-latest" ]; then + pip3 install --user -r requirements.txt --break-system-packages + else + pip3 install --user -r requirements.txt + fi - name: Setup Vim id: 'vim' uses: thinca/action-setup-vim@v2