-
Notifications
You must be signed in to change notification settings - Fork 4
Define how to run tests #218
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
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/usr/bin/env bash | ||
| echo "Initialize micromamba environment..." | ||
| source ./.ci/micromamba/init.sh | ||
|
Collaborator
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 had previous micromamba dev env in .ci/micromamba/micromamba I had to remove it completely to unlock.
Contributor
Author
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. So just to be sure: This issue did not return when using the script multiple times, right? In that case, I believe this error was the exact reason for adding the cleanup trap in the script. I'm open to any idea on how to make it even just a bit more robust.
Contributor
Author
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 spent a lot of time seeing how I could make it even just a bit better, and came to the conclusion that deleting the environment is the best way to ensure it will work. Maybe this cleanup is better placed in the init.sh file, so users are able to use the micromamba environment manually too. This does not force micromamba to redownload all packages, those are cached under |
||
|
|
||
| echo "Running pylint..." | ||
| pylint . | ||
| echo "Running bazel test //..." | ||
| bazel test //... | ||
| echo "Running pytest ..." | ||
| pytest test | ||
|
|
||
| echo "Exiting micromamba..." | ||
| micromamba deactivate | ||
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.
I'm sure, before running anything we must crealy describe how to initialize the environment.
See Development Environment above