-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
tests
] Resolve remaining test failures (#550)
* Run formatting * Avoid onnx==1.16.2 due to errors on Windows * Skip flaky test - passes in isolation, fails during full suite And it fails because the log doesn't get captured by the test, not because the log isn't thrown * Fix model card pattern * Only override model_card_data model_id if not already set * Prevent spacy from forcing numpy 2 * Fix softened evaluation_strategy deprecation * Always override eval_strategy with evaluation_strategy if the latter is provided * Restrict codecarbon to <2.6 to avoid failures from 2.7.* and print issues in 2.6.* * Set evaluation_strategy default to None * Print model card before full-matching * Print the full stdout during tests * Simplify the required pattern for model card generation tests These proved problematic as the ordering of each section in the metadata can change between OSes, versions, etc. * Run formatting * Require at least transformers>=4.41.0 due to eval_strategy rename * Remove debug print statement in tests * Use SafeTemporaryDirectory that prevents NotADirectoryError on Windows * Add tests for Python 3.11 & 3.12 Previously, these would fail for various reasons * Skip OpenVINO tests; OpenVINO exporting has been broken since openvino==2022.3.0 Skipping it allows us to add tests for Python 3.11 and 3.12, and OpenVINO support is not as important to SetFit as having tests * Set minimum datasets version to 2.7.0 due to pytest failures at Py3.11 & 3.12 * Increment minimum datasets version for 3.11/3.12 support
- Loading branch information
Showing
13 changed files
with
69 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.