-
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 |
|---|---|---|
|
|
@@ -69,9 +69,13 @@ if [[ "$VERBOSE" -ge 2 ]]; then | |
| micromamba info | ||
| fi | ||
|
|
||
| # Clean up previous environment | ||
| info "Cleaning up previous environment [$ENV_NAME]..." | ||
| chmod -R +w $THIS_DIR/micromamba/envs/dev | ||
| rm -rf $THIS_DIR/micromamba/envs/dev | ||
|
Comment on lines
+74
to
+75
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. Hm... Are you sure this is safe? There reason might be running session. Maybe proper deactivation may help? |
||
| micromamba deactivate | ||
| # Create environment | ||
| info "Creating environment [$ENV_NAME]..." | ||
| micromamba deactivate | ||
| micromamba create --file $THIS_DIR/$ENV_NAME.yaml --name $ENV_NAME --yes $MAMBA_VERBOSITY | ||
| # micromamba config set env_prompt "[{name}] " | ||
| micromamba activate $ENV_NAME | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/usr/bin/env bash | ||
|
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. What I think is that |
||
| echo "Initialize micromamba environment..." | ||
| source ./.ci/micromamba/init.sh | ||
|
nettle marked this conversation as resolved.
|
||
|
|
||
| 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 think
devis actually$ENV_NAME