diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5247e7..b3764c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Tests on: push: - branches: [ main ] + branches: [ main, ci-test-macos ] pull_request: jobs: @@ -11,15 +11,19 @@ jobs: matrix: os: [ubuntu-latest] python: ['3.8', '3.9', '3.10', '3.11'] + include: + - os: macos-latest + python: '3.10' + fail-fast: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} diff --git a/pyproject.toml b/pyproject.toml index f5d3721..103a90f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ dependencies = [ "cleanco>=2.2", # It is important to fix the version of xgboost for reproducible classification scores "xgboost", + "xgboost==2.0.3; sys_platform=='darwin'", # to avoid having to install libomp.dylib for later versions of xgboost "sparse-dot-topn>=1.1.1", "joblib", "pyarrow>=6.0.1", # seems to work with spark 3.1.2 - 3.3.1