Skip to content

Commit daf056f

Browse files
committed
update unit workflow
1 parent 008ab1b commit daf056f

File tree

5 files changed

+8
-66
lines changed

5 files changed

+8
-66
lines changed

.github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
python -m pip install invoke .[pomegranate, xgboost, test]
38+
python -m pip install invoke .[pomegranate,xgboost,test]
3939
- name: Run integration tests
4040
run: invoke integration
4141

.github/workflows/minimum.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
python -m pip install invoke .[test]
38+
python -m pip install invoke .[test,xgboost]
3939
- name: Test with minimum versions
4040
run: invoke minimum

.github/workflows/unit.yml

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
30+
- name: Install libomp (macOS only)
31+
if: matrix.os == 'macos-latest'
32+
run: |
33+
brew install libomp
34+
echo 'export DYLD_LIBRARY_PATH=$(brew --prefix libomp)/lib:$DYLD_LIBRARY_PATH' >> $GITHUB_ENV
3035
- name: Install dependencies
3136
run: |
3237
python -m pip install --upgrade pip

sdmetrics/single_table/data_augmentation/_libomp_installation.py

-60
This file was deleted.

sdmetrics/single_table/data_augmentation/base.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
import pandas as pd
77
from sklearn.metrics import confusion_matrix, precision_recall_curve, precision_score, recall_score
88
from sklearn.preprocessing import OrdinalEncoder
9+
from xgboost import XGBClassifier
910

1011
from sdmetrics.goal import Goal
1112
from sdmetrics.single_table.base import SingleTableMetric
12-
from sdmetrics.single_table.data_augmentation._libomp_installation import install_libomp
1313
from sdmetrics.single_table.data_augmentation.utils import _validate_inputs
1414

15-
install_libomp()
16-
from xgboost import XGBClassifier # noqa
17-
1815
METRIC_NAME_TO_METHOD = {'recall': recall_score, 'precision': precision_score}
1916

2017

0 commit comments

Comments
 (0)