diff --git a/.github/workflows/platform_tests-command.yml b/.github/workflows/platform_tests-command.yml index 879bf0d..6dcd28f 100644 --- a/.github/workflows/platform_tests-command.yml +++ b/.github/workflows/platform_tests-command.yml @@ -41,8 +41,6 @@ jobs: [1]: ${{ steps.vars.outputs.run-url }} - - install: needs: setup runs-on: ${{ matrix.os }} @@ -53,7 +51,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.9", "3.10", "3.11"] steps: - name: Checkout repository for PR if: (github.event_name == 'workflow_dispatch') @@ -71,6 +69,16 @@ jobs: auto-update-conda: true python-version: ${{ matrix.python }} miniconda-version: "latest" + - name: Setup OMP # This is needed for macos-latest to avoid the error lightgbm macOS issue + if: matrix.os == 'macos-latest' + shell: bash -l {0} + run: | + wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fb8323f2b170bd4ae97e1bac9bf3e2983af3fdb0/Formula/libomp.rb + if brew list | grep -q libomp; then + brew unlink libomp + fi + brew install libomp.rb + rm libomp.rb - name: test-install shell: bash -l {0} run: | diff --git a/.github/workflows/slash_command_dispatch.yml b/.github/workflows/slash_command_dispatch.yml index 6f36299..727a92a 100644 --- a/.github/workflows/slash_command_dispatch.yml +++ b/.github/workflows/slash_command_dispatch.yml @@ -14,7 +14,7 @@ jobs: result-encoding: string script: | const { owner, repo, number } = context.issue; - const pr = await github.pulls.get({ + const pr = await github.rest.pulls.get({ owner, repo, pull_number: number,