Skip to content

Commit db28c14

Browse files
committed
try to fix test failures
1 parent 4ef74f6 commit db28c14

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install UV
2626
run: curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
27-
- name: Add UV to path
28-
run: source $HOME/.local/bin/env || echo
27+
- name: Add UV to PATH on Windows
28+
if: "startsWith(runner.os, 'windows')"
29+
run: echo "::add-path::/c/Users/runneradmin/.local/bin"
2930
- name: Install hatch
3031
run: uv pip install --system hatch
3132
- name: Install swig

pytabkit/models/sklearn/sklearn_interfaces.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,11 @@ def _supports_single_sample(self) -> bool:
11211121
def _supports_multioutput(self) -> bool:
11221122
return False
11231123

1124+
def _more_tags(self):
1125+
# set non-deterministic
1126+
# since this class can otherwise fail the check_methods_subset_invariance test due to low precision (?)
1127+
return utils.join_dicts(super()._more_tags(), dict(non_deterministic=True))
1128+
11241129

11251130
class FTTransformerConstructorMixin:
11261131
def __init__(self,
@@ -1369,6 +1374,11 @@ def _supports_single_sample(self) -> bool:
13691374
def _supports_multioutput(self) -> bool:
13701375
return False
13711376

1377+
def _more_tags(self):
1378+
# set non-deterministic
1379+
# since this class can otherwise fail the check_methods_subset_invariance test due to low precision (?)
1380+
return utils.join_dicts(super()._more_tags(), dict(non_deterministic=True))
1381+
13721382

13731383
class TabrConstructorMixin:
13741384
def __init__(self,

0 commit comments

Comments
 (0)