From a71421e82590e63334e2d21de5168c795668dd3b Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Sat, 8 Oct 2022 00:40:43 -0700 Subject: [PATCH] [CI] Update GitHub Actions to use macos-11 (#8321) --- .github/workflows/jvm_tests.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/python_tests.yml | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/jvm_tests.yml b/.github/workflows/jvm_tests.yml index 9cc85ceab..50df9b3d6 100644 --- a/.github/workflows/jvm_tests.yml +++ b/.github/workflows/jvm_tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, ubuntu-latest, macos-10.15] + os: [windows-latest, ubuntu-latest, macos-11] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7f1bdcf9..abe4b2b71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-10.15] + os: [macos-11] steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 4fd711669..7ad742045 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -46,14 +46,14 @@ jobs: name: Test installing XGBoost Python source package on ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-10.15, windows-latest] + os: [ubuntu-latest, macos-11, windows-latest] python-version: ["3.8"] steps: - uses: actions/checkout@v2 with: submodules: 'true' - name: Install osx system dependencies - if: matrix.os == 'macos-10.15' + if: matrix.os == 'macos-11' run: | brew install ninja libomp - name: Install Ubuntu system dependencies @@ -134,7 +134,7 @@ jobs: strategy: matrix: config: - - {os: macos-10.15, python-version "3.8" } + - {os: macos-11, python-version "3.8" } steps: - uses: actions/checkout@v2 @@ -172,8 +172,7 @@ jobs: run: | cd python-package python --version - python setup.py bdist_wheel --universal - pip install ./dist/*.whl + python setup.py install - name: Test Python package shell: bash -l {0}