From 567c4182d5b57f8a4d38f35908dc4d6c4c14fab4 Mon Sep 17 00:00:00 2001 From: Sergio Garcia <47090312+singiamtel@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:35:36 +0100 Subject: [PATCH] Fix macOS CI runner (#891) --- .github/workflows/pr-check.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 2a9d9ad2..03bd24dc 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -60,13 +60,13 @@ jobs: - name: Upload coverage information if: ${{ always() && github.event.repository.owner.login == 'alisw' }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: files: coverage.json mac-unittest: name: mac-python${{ matrix.python-version }} - runs-on: macos-latest + runs-on: macos-14 strategy: fail-fast: false # continue executing other checks if one fails @@ -75,15 +75,18 @@ jobs: - '3.11' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install test dependencies run: | + # Hack to remove whatever the CI default image brings now, as it + # conflicts with the one in o2-full-deps [O2-5580] + brew uninstall --ignore-dependencies --force pkg-config@0.29.2 brew install modules alisw/system-deps/o2-full-deps sapling python3 -m pip install --upgrade tox tox-gh-actions coverage @@ -102,7 +105,7 @@ jobs: - name: Upload coverage information if: ${{ always() && github.event.repository.owner.login == 'alisw' }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: files: coverage.json @@ -111,10 +114,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x