Skip to content

MAINT update dependencies for CI #1145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].8
- uses: prefix-dev/[email protected].14
with:
pixi-version: v0.39.2
pixi-version: v0.51.0
frozen: true

- name: Run tests
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
ci-py310-min-tensorflow,
ci-py311-sklearn-1-4,
ci-py311-sklearn-1-5,
ci-py312-sklearn-1-6,
ci-py311-latest-keras,
ci-py311-latest-tensorflow,
ci-py313-latest-dependencies,
Expand All @@ -37,9 +38,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected].8
- uses: prefix-dev/[email protected].14
with:
pixi-version: v0.39.2
pixi-version: v0.51.0
environments: ${{ matrix.environment }}
# we can freeze the environment and manually bump the dependencies to the
# latest version time to time.
Expand Down
6 changes: 4 additions & 2 deletions imblearn/keras/tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def data():
X, y = make_imbalance(
iris.data, iris.target, sampling_strategy={0: 30, 1: 50, 2: 40}
)
y = LabelBinarizer().fit_transform(y)
X = X.astype(np.float32)
y = LabelBinarizer().fit_transform(y).astype(np.int32)
return X, y


Expand Down Expand Up @@ -103,7 +104,7 @@ def test_balanced_batch_generator_function_no_return_indices(data):
(None, None),
(RandomOverSampler(), None),
(NearMiss(), None),
(None, np.random.uniform(size=120)),
(None, np.random.uniform(size=120).astype(np.float32)),
],
)
def test_balanced_batch_generator_function(data, sampler, sample_weight):
Expand All @@ -117,6 +118,7 @@ def test_balanced_batch_generator_function(data, sampler, sample_weight):
batch_size=10,
random_state=42,
)
print(next(training_generator))
model.fit(
training_generator,
steps_per_epoch=steps_per_epoch,
Expand Down
Loading
Loading