[CI] Try capping scikit-learn <= 1.5.2 #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: XGBoost CI (misc) | |
on: [push, pull_request] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
BRANCH_NAME: >- | |
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }} | |
jobs: | |
gtest-cpu-nonomp: | |
name: Test Google C++ unittest (CPU Non-OMP) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install system packages | |
run: | | |
sudo apt-get install -y --no-install-recommends ninja-build | |
- name: Build and install XGBoost | |
run: bash ops/script/build_via_cmake.sh -DUSE_OPENMP=OFF | |
- name: Run gtest binary | |
run: | | |
cd build | |
ctest --extra-verbose | |
c-api-demo: | |
name: Test installing XGBoost lib + building the C API demo | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- uses: dmlc/xgboost-devops/actions/miniforge-setup@main | |
with: | |
environment-name: cpp_test | |
environment-file: ops/conda_env/cpp_test.yml | |
- name: Build and run C API demo with shared | |
run: bash ops/pipeline/test-c-api-demo.sh |