-
Notifications
You must be signed in to change notification settings - Fork 23
Add tests folder to dpnp conda package #2116
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
Changes from 68 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
3e42166
Move tests to dpnp folder
vlad-perevezentsev c9a0622
Update import paths for dpnp tests
vlad-perevezentsev 2755aab
Update paths in skipped_tests files
vlad-perevezentsev 223e4a4
Update import paths in tests_perf
vlad-perevezentsev cda88b5
Update import paths in cupy/testing
vlad-perevezentsev 39fdc4e
Update import paths in all cupy tests
vlad-perevezentsev 0a91a52
Merge master into move_tests_folder
vlad-perevezentsev be7a9c0
Update tests path in pyproject.toml
vlad-perevezentsev a976f39
Remove MANIFEST.in
vlad-perevezentsev 82b5568
Add tests folder to conda package
vlad-perevezentsev 4c6c78f
Simplify meta.yaml: move test logic to run_test.sh
vlad-perevezentsev db2a453
Move pytest config from setup.cfg to conftest.py
vlad-perevezentsev d4253ae
Update call pytest in gen_coverage.py
vlad-perevezentsev 8088e3a
Update path to cupy.testing in some tests
vlad-perevezentsev 4aded88
Update test paths for github action test_linux
vlad-perevezentsev 7e97155
Undo moving tests to dpnp folder
vlad-perevezentsev a8b7f75
Copy tests folder to conda package
vlad-perevezentsev 81c0850
Undo updating paths in skipped files
vlad-perevezentsev 5776a63
Undo updating tests paths in pyproject.toml
vlad-perevezentsev df9e0a4
Optimize test skipping and path normalization in conftest.py
vlad-perevezentsev 6d697db
Merge master into move_tests_folder
vlad-perevezentsev ec45c7c
Add norecursedirs config for tests_perf in conftest.py
vlad-perevezentsev ec23647
Use relative imports in tests/testing
vlad-perevezentsev e6c4ea3
Use relative imports in tests/tests_perf
vlad-perevezentsev a8e91e0
Use relative imports for dpnp tests
vlad-perevezentsev b99d7b1
Use relative imports in tests/third_party/cupy/testing/
vlad-perevezentsev 878300e
Update docs for _loops.py
vlad-perevezentsev ff6d2b3
Use .helper in cupy/testing/__init__.py
vlad-perevezentsev 326276b
Use relative imports in cupy tests
vlad-perevezentsev 66ad5d8
Add empty __init__.py files to cupy tests
vlad-perevezentsev a342e04
Update import path in test_add_remove.py
vlad-perevezentsev b80939c
Undo updating call pytest on gen_coverage.py
vlad-perevezentsev 5380aff
Update tests-path for GH Actions
vlad-perevezentsev a0aba61
Merge master into move_tests_folder
vlad-perevezentsev 4edbbd1
Show extra test summary info in internal CI
vlad-perevezentsev f410961
Fix normalize_test_name() to support subdirectories
vlad-perevezentsev 6a1ffac
Remove debug lines in conftest.py
vlad-perevezentsev 14e4111
Update normalize_test_name to run pytest from diff paths
vlad-perevezentsev b996d90
Add run_test.bat to conda-recipe
vlad-perevezentsev 351f101
Fix setting tests_path for Windows in conda-package.yml
vlad-perevezentsev d5fb73f
Update ser tests_path for windows
vlad-perevezentsev 1388816
Add debug info for test_windows
vlad-perevezentsev ea9f5fd
Debug info
vlad-perevezentsev 2d6c1a8
Use sysconfig to detect tests_path on Windows
vlad-perevezentsev 4d049e8
Use --rootdir for test_windows in public CI
vlad-perevezentsev cf22ee8
Update pre-commit settings to move tests folder
vlad-perevezentsev c2f55a6
Move tests to dpnp folder
vlad-perevezentsev 6f87e4a
Use absolute import paths in cupy tests
vlad-perevezentsev c7d3811
Update tests path in pyproject.toml
vlad-perevezentsev bf57f31
Use package_data instead of data_files in setup.py to pack tests
vlad-perevezentsev 8c8b86a
Update args for generate coverage
vlad-perevezentsev c89e134
Merge master into move_tests_folder
vlad-perevezentsev 1cf7670
Update import path in test_arraypad.py
vlad-perevezentsev ca4d440
Add debug info for Public CI Win
vlad-perevezentsev 1d44b35
Run only python 3.11 GH Actions
vlad-perevezentsev c1fe7c2
Use cd %tests_path%
vlad-perevezentsev 76f610b
use pushd to move to tests folder
vlad-perevezentsev a73b121
Switch to C: drive for test_windows
vlad-perevezentsev 7e253c9
Merge master into move_tests_folder
vlad-perevezentsev c33e3d3
Remove debug lines
vlad-perevezentsev 26a4b4b
Merge master into move_tests_folder
vlad-perevezentsev 2cdca1e
Rename TEST_SCOPE files to use pytest --pyargs
vlad-perevezentsev cac52d8
Run tests from test_tmp folder
vlad-perevezentsev 80e7d72
Use --pyargs for tests in public CI
vlad-perevezentsev 61b68ac
Run tests from {github.workspace} and use pytest for public CI
vlad-perevezentsev ac8ac50
Merge master into move_tests_folder
vlad-perevezentsev 7e410c4
Run all tests by --pyargs dpnp.tests in public CI
vlad-perevezentsev f76a0e6
Merge master into move_tests_folder
vlad-perevezentsev 0e29f02
Merge master into move_tests_folder
vlad-perevezentsev 9ea9d06
Remove warning filter for pkg_resources
vlad-perevezentsev 8088098
Remove unused imports in test files
vlad-perevezentsev 93566f1
Align import for test_arraypad.py
vlad-perevezentsev e03cd93
Use absolute import path in cupy/testing
vlad-perevezentsev f1a023b
Print dpnp version while testing conda package
vlad-perevezentsev cab2f48
Disable verbose and disable-warnings pytest mode for public CI
vlad-perevezentsev a1c54cc
Disable quiet, verbose, disable-warnings pytest mode for testing cond…
vlad-perevezentsev 83687e6
Merge master into move_tests_folder
vlad-perevezentsev f5a6031
Merge master into move_tests_folder
vlad-perevezentsev 5274a5e
Merge master into move_tests_folder
vlad-perevezentsev af3205d
Merge master into move_tests_folder
vlad-perevezentsev ce95578
Merge master into move_tests_folder
vlad-perevezentsev 004202f
Remove dublicate env variable MODULE_NAME in conda-package.yaml
vlad-perevezentsev 8d0e646
Remove working-directory usage for Run tests in conda-package.yml
vlad-perevezentsev 38a1472
Merge master into move_tests_folder
vlad-perevezentsev 4c90c59
Merge master into move_tests_folder
vlad-perevezentsev 05bd7fa
Merge master into move_tests_folder
vlad-perevezentsev 6a0c2be
Merge master into move_tests_folder
vlad-perevezentsev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,41 @@ | ||
@echo on | ||
|
||
REM if ONEAPI_ROOT is specified (use all from it) | ||
if defined ONEAPI_ROOT ( | ||
set "DPCPPROOT=%ONEAPI_ROOT%\compiler\latest" | ||
set "MKLROOT=%ONEAPI_ROOT%\mkl\latest" | ||
set "TBBROOT=%ONEAPI_ROOT%\tbb\latest" | ||
set "DPLROOT=%ONEAPI_ROOT%\dpl\latest" | ||
) | ||
|
||
REM if DPCPPROOT is specified (work with custom DPCPP) | ||
if defined DPCPPROOT ( | ||
call "%DPCPPROOT%\env\vars.bat" | ||
) | ||
|
||
REM if MKLROOT is specified (work with custom math library) | ||
if defined MKLROOT ( | ||
call "%MKLROOT%\env\vars.bat" | ||
) | ||
|
||
REM have to activate while SYCL CPU device/driver needs paths | ||
REM if TBBROOT is specified | ||
if defined TBBROOT ( | ||
call "%TBBROOT%\env\vars.bat" | ||
) | ||
|
||
REM If PYTHON is not set | ||
REM assign it to the Python interpreter from the testing environment | ||
if not defined PYTHON ( | ||
for %%I in (python.exe) do set PYTHON=%%~$PATH:I | ||
) | ||
|
||
|
||
"%PYTHON%" -c "import dpctl; print(dpctl.__version__)" | ||
vlad-perevezentsev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
if errorlevel 1 exit 1 | ||
|
||
"%PYTHON%" -m dpctl -f | ||
if errorlevel 1 exit 1 | ||
|
||
"%PYTHON%" -m pytest -q -ra --disable-warnings --pyargs dpnp -vv | ||
vlad-perevezentsev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
if errorlevel 1 exit 1 |
This file contains hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.