-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 10 commits.
# This is the 1st commit message: migrate github cpu build to use tox # This is the commit message #2: newline # This is the commit message #3: install tox in github action # This is the commit message #4: forgot tox oops # This is the commit message #5: remove macos version of tf # This is the commit message #6: install deps for docs in gh runner # This is the commit message #7: build docs with tox # This is the commit message #8: use a gh action to build docs # This is the commit message #9: move fil into tox file, remove docs for now # This is the commit message #10: add pytest for fil tests
- Loading branch information
1 parent
4563861
commit 272e5c3
Showing
7 changed files
with
90 additions
and
82 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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
-r requirements-test.txt | ||
|
||
faiss-cpu==1.7.2 | ||
tensorflow<=2.9.0 |
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,4 @@ | ||
-r requirements-test.txt | ||
|
||
tensorflow-gpu<=2.9.0 | ||
faiss-gpu==1.7.2 |
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,22 @@ | ||
-r requirements.txt | ||
-r requirements-dev.txt | ||
|
||
# This contains common libraries for testing. | ||
|
||
# NOTE: You should pip install requirements-test-[cpu|gpu].txt for device-specific test | ||
# requirements, which will include the dependencies defined in this file. | ||
|
||
pytest>=5 | ||
pytest-cov>=2 | ||
scikit-learn>=0.20 | ||
git+https://github.com/rapidsai/asvdb.git | ||
testbook==0.4.2 | ||
|
||
# packages necessary to run tests and push PRs | ||
feast==0.19.4 | ||
xgboost==1.6.1 | ||
|
||
nvtabular | ||
|
||
# TODO: do we need more of these? | ||
# https://github.com/NVIDIA-Merlin/Merlin/blob/a1cc48fe23c4dfc627423168436f26ef7e028204/ci/dockerfile.ci#L13-L18 |
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,44 @@ | ||
[tox] | ||
envlist = python3.8,test-gpu,test-cpu | ||
|
||
[testenv] | ||
deps = -rrequirements-dev.txt | ||
commands = | ||
pip install --upgrade pip | ||
pip install . | ||
allowlist_externals = sphinx-build | ||
|
||
[testenv:test-cpu] | ||
deps = -rrequirements-test-cpu.txt | ||
commands = python -m pytest --cov-report term --cov=merlin -rxs tests/unit/ | ||
|
||
[testenv:test-gpu] | ||
deps = -rrequirements-test-gpu.txt | ||
commands = python -m pytest --cov-report term --cov=merlin -rxs tests/unit/ | ||
|
||
[testenv:test-fil-cpu] | ||
deps = | ||
pytest | ||
xgboost | ||
lightgbm | ||
sklearn | ||
treelite==2.3.0 | ||
treelite_runtime==2.3.0 | ||
commands = | ||
python setup.py develop | ||
python -m pytest -rxs tests/unit/systems/fil/ | ||
|
||
[testenv:lint] | ||
commands = | ||
flake8 setup.py merlin/ tests/ | ||
black --check --diff merlin tests | ||
pylint merlin | ||
isort -c . --skip .tox | ||
interrogate --config=pyproject.toml | ||
codespell --skip .tox | ||
|
||
[testenv:docs] | ||
changedir = {toxinidir}/docs | ||
deps = attrs | ||
commands = | ||
sphinx-build -W -q source build |