-
Notifications
You must be signed in to change notification settings - Fork 23
chore(cache): for generating test outputs #786
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
base: main
Are you sure you want to change the base?
Changes from all commits
20fac00
a499e60
4f58bdf
f7e9113
926e6f1
d7ff807
1185f08
3ec9dd6
bcc792e
4bbae30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,3 +179,6 @@ docs/src/examples | |
| node_modules/ | ||
| package-lock.json | ||
| package.json | ||
|
|
||
| # caching githash | ||
| .data_version.txt | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would rather create this file inside |
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -89,6 +89,17 @@ testing it. Also, you may want to setup your editor to automatically apply the ` | |||||
| are plugins to do this with `all major editors | ||||||
| <https://black.readthedocs.io/en/stable/editor_integration.html>`_. | ||||||
|
|
||||||
| By default, the main test suite regenerates the necessary model files every time | ||||||
| it runs. For faster local development, you can **opt-in** to caching these files | ||||||
| by setting the ``USE_CACHE`` environment variable to ``1``: | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
would be a lot clearer (or |
||||||
|
|
||||||
| .. code-block:: bash | ||||||
|
|
||||||
| USE_CACHE=1 tox -e tests | ||||||
|
|
||||||
| When caching is enabled, the script will skip regeneration as long as the cached | ||||||
| files exist and the underlying source code has not changed. | ||||||
|
|
||||||
| If you want to test a specific archicture you can also do it. For example | ||||||
|
|
||||||
| .. code-block:: bash | ||||||
|
|
||||||
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.
Since this is now opt in. We don't need to declare these variables here, right?