Skip to content
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

Mark sklearn tests #1202

Merged
merged 15 commits into from
Feb 23, 2023
Merged

Mark sklearn tests #1202

merged 15 commits into from
Feb 23, 2023

Conversation

PGijsbers
Copy link
Collaborator

Closes #1186

Marks 103 tests that use scikit-learn. I hope it is exhaustive, though it is possible I missed a few.
Updated the Github Workflow to only run scikit-learn dependent tests by default, as most matrix jobs are specifically to test different scikit-learn versions (and non sklearn tests should not be affected by scikit-learn version). The code coverage and windows job still run the full suite.

Built on top of #1199, #1200 (hence the draft state).

.github/workflows/test.yml Outdated Show resolved Hide resolved
tests/test_runs/test_run.py Show resolved Hide resolved
@PGijsbers PGijsbers marked this pull request as ready for review February 20, 2023 18:40
@PGijsbers PGijsbers force-pushed the mark_sklearn_tests branch 2 times, most recently from d49fdc6 to a17282e Compare February 22, 2023 08:51
Copy link
Collaborator

@mfeurer mfeurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, but there are some jobs that are manually added to the jobs matrix that have no sk_only flag set, do we intend to only run scikit-learn tests for them, too?

Also, it would be great if we can discuss what we test for which version briefly offline.

@mfeurer mfeurer merged commit a968288 into develop Feb 23, 2023
@mfeurer mfeurer deleted the mark_sklearn_tests branch February 23, 2023 14:01
mfeurer pushed a commit that referenced this pull request Feb 24, 2023
…n run.data_content (#1209)

* add test and fix for switch of ground truth and predictions

* undo import optimization

* fix bug with model passing to function

* fix order in other tests

* update progress.rst

* new unit test for run consistency and bug fixed

* clarify new assert

* minor loop refactor

* refactor default to None

* directly test prediction data equal

* Update tests/test_runs/test_run.py

Co-authored-by: Pieter Gijsbers <[email protected]>

* Mark sklearn tests (#1202)

* Add sklearn marker

* Mark tests that use scikit-learn

* Only run scikit-learn tests multiple times

The generic tests that don't use scikit-learn should only be tested once
(per platform).

* Rename for correct variable

* Add sklearn mark for filesystem test

* Remove quotes around sklearn

* Instead include sklearn in the matrix definition

* Update jobnames

* Add explicit false to jobname

* Remove space

* Add function inside of expression?

* Do string testing instead

* Add missing ${{

* Add explicit true to old sklearn tests

* Add instruction to add pytest marker for sklearn tests

* add test and fix for switch of ground truth and predictions

* undo import optimization

* fix mask error resulting from rebase

* make dummy classifier strategy consistent to avoid problems as a result of the random state problems for sklearn < 0.24

---------

Co-authored-by: Pieter Gijsbers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark all tests that actually use scikit-learn
2 participants