-
Notifications
You must be signed in to change notification settings - Fork 323
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
ci: Cache datasets #315
ci: Cache datasets #315
Conversation
Codecov Report
@@ Coverage Diff @@
## master #315 +/- ##
==========================================
+ Coverage 82.37% 82.39% +0.01%
==========================================
Files 99 99
Lines 5612 5611 -1
==========================================
Hits 4623 4623
+ Misses 989 988 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hello @akihironitta! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-11-06 13:16:11 UTC |
https://github.com/PyTorchLightning/pytorch-lightning-bolts/blob/6c51b4cd975ef0f03d1e7210111ded43e4b07d91/.github/workflows/ci_test-full.yml#L81 |
I am not sure if the way of caching datasets is originally expected in the linked issue. If I am doing something which you find unreasonable, please let me know and close this PR! (It was a great opportunity to look through docs of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, btw have you tested that DataModules really does not create any other folder?
88ac989
to
40cb4f9
Compare
What does this PR do?
Fixes #279. All tests now use
./datasets/
to store downloaded datasets and to restore from if already downloaded.Description of the changes
Cache datasets
sectiontmpdir
fixturetests/conftest.py
to definedata_dir
andDATA_DIR
which can be referenced from each test.data_dir
fixture can be used without any import in each test.DATA_DIR
const variable is defined to refer to the dataset directory inpytest.mark.parametrize()
. pytest does not support using fixtures inpytest.mark.parametrize()
. See Using fixtures in pytest.mark.parametrize pytest-dev/pytest#349.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃