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

Add tests for imports when optional packages are unavailable #428

Merged
merged 53 commits into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6397d5d
Define optional_pkg_names in tests/__init__.py
akihironitta Dec 7, 2020
fafb318
Update test_imports for datamodules
akihironitta Dec 7, 2020
7b2da23
Add test_imports for metrics
akihironitta Dec 7, 2020
862d092
Add test_imports for losses
akihironitta Dec 7, 2020
bb95c00
Add test_imports for callbacks
akihironitta Dec 7, 2020
6ddb086
Add test_imports for transforms
akihironitta Dec 7, 2020
2d30ffc
Add missing imports
akihironitta Dec 7, 2020
dd10470
Add missing imports
akihironitta Dec 7, 2020
3e07794
Update test_imports for pl_bolts
akihironitta Dec 7, 2020
0ebf8e9
Merge branch 'bugfix/imports' into tests/imports
akihironitta Dec 7, 2020
378248e
Add test_imports for utils
akihironitta Dec 7, 2020
61e5809
Update test_imports for losses
akihironitta Dec 7, 2020
96d4820
Update test_imports for losses
akihironitta Dec 7, 2020
4c6f823
Apply isort
akihironitta Dec 7, 2020
00aa48b
Add test_imports for optimizers
akihironitta Dec 7, 2020
0c79e80
Follow pip8
akihironitta Dec 7, 2020
c45e3a2
Fix test_imports for transforms
akihironitta Dec 7, 2020
7af3359
Merge branch 'master' into tests/imports
akihironitta Dec 8, 2020
d3a4e3a
Merge branch 'master' into tests/imports
akihironitta Jan 21, 2021
d2cca91
yapf
akihironitta Jan 21, 2021
93e5be6
Add tests for datasets
akihironitta Jan 21, 2021
2d72b2e
Update the tests and pl_bolts
akihironitta Jan 21, 2021
f48caab
Merge branch 'master' into tests/imports
akihironitta Feb 10, 2021
fc7a086
Fix imports
akihironitta Feb 10, 2021
d02ddee
Remove unused tests
akihironitta Feb 10, 2021
6372d80
yapf
akihironitta Feb 10, 2021
0d9d2d2
Revert adding tests
akihironitta Feb 13, 2021
aa22cf5
Revert adding tests
akihironitta Feb 13, 2021
dd1500e
Add tests
akihironitta Feb 13, 2021
ad1aa83
Update dep installation
akihironitta Feb 13, 2021
5979841
Add cpu link
akihironitta Feb 16, 2021
dad940f
Merge branch 'master' into tests/imports
akihironitta Apr 19, 2021
74f9c54
isort
akihironitta Apr 19, 2021
b6bd1ae
Add an import test under no optional pacakges
akihironitta Apr 19, 2021
fee2af9
Undo unrelated changes
akihironitta Jun 24, 2021
f15d123
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 24, 2021
2462c9b
Merge branch 'master' into tests/imports
mergify[bot] Jun 24, 2021
b418e83
Merge branch 'master' into tests/imports
mergify[bot] Jun 24, 2021
abc03a5
Merge branch 'master' into tests/imports
mergify[bot] Jun 24, 2021
a3f54f1
Merge branch 'master' into tests/imports
mergify[bot] Jun 25, 2021
0870703
Merge branch 'master' into tests/imports
mergify[bot] Jun 25, 2021
c5db772
Merge branch 'master' into tests/imports
mergify[bot] Jun 29, 2021
38f856f
Merge branch 'master' into tests/imports
mergify[bot] Jul 1, 2021
6dd83ee
Merge branch 'master' into tests/imports
mergify[bot] Jul 4, 2021
ce51ba9
Merge branch 'master' into tests/imports
mergify[bot] Jul 4, 2021
949ef5d
Merge branch 'master' into tests/imports
mergify[bot] Jul 7, 2021
d5de778
Merge branch 'master' into tests/imports
mergify[bot] Jul 13, 2021
a54e7bc
Merge branch 'master' into tests/imports
mergify[bot] Jul 13, 2021
3e9f4fe
Merge branch 'master' into tests/imports
mergify[bot] Jul 26, 2021
38dc958
Merge branch 'master' into tests/imports
mergify[bot] Jul 28, 2021
b4a7abf
Merge branch 'master' into tests/imports
mergify[bot] Aug 9, 2021
dac1456
update CI install
Borda Aug 13, 2021
b358569
.
Borda Aug 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci_test-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
python --version
pip --version
# python -m pip install --upgrade --user pip

# Install only mandatory dependencies and check if `import pl_bolts` is successful without any optional packages.
pip install --requirement requirements.txt --upgrade --quiet --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
python -c 'import pl_bolts'
Borda marked this conversation as resolved.
Show resolved Hide resolved

pip install --requirement requirements/devel.txt --upgrade --quiet --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
pip list
shell: bash
Expand Down
39 changes: 0 additions & 39 deletions tests/datamodules/test_imports.py

This file was deleted.