Commit d90fb9e
committed
Fix XGBoost CI test on MacOS Python3.11, Python3.12, and Python3.13
Implemented the macOS XGBoost test fix.
Changed:
- requirements-dev.txt:9: pin CI/dev XGBoost to >=1.7,<3 for Python <3.14.
- setup.cfg:11: mirror the same constraint for metbit[ml] / metbit[all].
- tests/test_new_modules.py:28: skip XGBoost tests on Python 3.14 and also skip accidental XGBoost 3.x on macOS before it reaches the segfaulting sklearn CV path.
- metbit/ml/classifiers.py:46: default XGBoost wrapper to n_jobs=1, still overrideable by caller kwargs.
Verified:
- python3 -m py_compile tests/test_new_modules.py metbit/ml/classifiers.py
- Focused local check: pytest ... TestMLClassifier::test_xgb_fit -o addopts="" passes as skipped on this Python 3.14/XGBoost 3.2.0 machine.1 parent a08e63f commit d90fb9e
4 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
0 commit comments