-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI, enhancement] add pytest-cov for testing (#2104)
* Update requirements-test.txt * Update run_test.sh * Update ci.yml * Update run_test.sh * Update run_test.sh * Update run_test.sh * Update run_test.sh * Update run_test.sh * Update run_test.sh * Update run_test.sh * forgot to add the coveragerc file * add whitespace * Update run_test.sh * Update .coveragerc * Update test_basic_statistics.py * formatting * Update test_basic_statistics.py * Update ci.yml * Update run_test.sh * Update ci.yml * Update run_test.sh * Update test_basic_statistics.py * Update test_incremental_basic_statistics.py * Update run_test.sh * Update ci.yml * Update run_test.sh * Update test_basic_statistics.py * formatting * Update test_incremental_basic_statistics.py * Update test_incremental_basic_statistics.py * Update test_basic_statistics.py * Update test_incremental_basic_statistics.py * Update test_basic_statistics.py * Update test_incremental_basic_statistics.py * Update test_incremental_basic_statistics.py * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update run_test.sh * Update .coveragerc * Update run_test.sh * switch coverage to be coveragerc location * missing change * udpate CI * Update ci.yml * Update run_test.sh * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update ci.yml * Update run_test.sh * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update ci.yml * Update run_test.sh * fix isort * formatting * Update .coveragerc * create viable pathing * add first gpu coverage notes * test coverage removal for gpu * added whitespace * try to fix the bs tests from report * fix mistake * make appending simpler * Update .ci/scripts/run_sklearn_tests.py Co-authored-by: Andreas Huber <[email protected]> * Update run_sklearn_tests.py * formatting * Update .coveragerc * Update ci.yml * Update run_test.bat * Update ci.yml * this will break CI, work in progress: * attempt at fixing dpctl check * make consistent * remove $ * fix env setting windows * further iterations * further fixes * test with a string * further attempts at fixing it * attack at root cause * formatting error: * windows annoyance * windows annoyance * windows annoyance * test * whitespace * Update ci.yml * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update run_sklearn_tests.py * Update ci.yml * Update run_sklearn_tests.py * Update ci.yml * Update run_test.bat * Update run_test.sh * Update requirements-test.txt * Update ci.yml * Update ci.yml * Update run_sklearn_tests.py * formatting * Update ci.yml * Update ci.yml * Update ci.yml * making change for basic_stats * forgotten spmd changes * Update run_test.sh * Update .coveragerc * extract adjacent changes requested * remove comments from LogReg * remove unneeded code * forgotten change * fix save_attributes * Update test_incremental_basic_statistics_spmd.py * Update test_incremental_basic_statistics_spmd.py * Update test_basic_statistics_spmd.py * Update run_test.bat * Update run_test.bat * Update run_test.sh * Update run_test.sh * Update run_test.bat * fixes requested * Update .coveragerc * Update run_test.sh * Update run_test.sh * Update run_test.sh * attempt at centralizing windows * fix for whitespace * fix for whitespace * fix for -- * make changes suggested * add check to run_test.sh to match run_test.bat * make codefactor suggestion * make a better exit value * last suggested changes --------- Co-authored-by: Andreas Huber <[email protected]>
- Loading branch information
Showing
14 changed files
with
248 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#=============================================================================== | ||
# Copyright 2024 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#=============================================================================== | ||
[run] | ||
branch = True | ||
source = | ||
sklearnex | ||
onedal | ||
parallel = True | ||
omit = | ||
*/onedal/tests/* | ||
*/onedal/basic_statistics/tests/utils.py | ||
*/sklearnex/conftest.py | ||
*/sklearnex/tests/* | ||
*/sklearnex/preview/* | ||
*/sklearnex/spmd/* | ||
[paths] | ||
sklearnex = | ||
sklearnex/ | ||
*/sklearnex | ||
onedal = | ||
onedal/ | ||
*/onedal | ||
#Uncomment lines below for report generation when an Intel GPU is unavailable | ||
#[report] | ||
#exclude_also = | ||
# def _onedal_gpu.* | ||
# coverage: gpu_start(?s:.)*coverage: gpu_stop |
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.