-
Notifications
You must be signed in to change notification settings - Fork 24
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
Run discovery on CI and adjust Conda env discovery #9
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
115d49f
Conda on CI
DonJayamanne dc024e8
Lets find everything
DonJayamanne 44661d0
Display output as well
DonJayamanne 840bd06
oop
DonJayamanne ca12c88
oops
DonJayamanne 6bed471
Add more search paths and fix CONDA_ROOT env variable
DonJayamanne 3c1cd10
extract conda dir from the CONDA env variable as well
DonJayamanne 6608e65
more directories on windows
DonJayamanne 0ef5268
more paths
DonJayamanne 3f40dd0
deduplicate
DonJayamanne 98bafbe
Add comments
DonJayamanne f387801
Skip outputs
DonJayamanne 6fc436e
Fix compilation error
DonJayamanne b2cbe18
Run cli only on some platforms
DonJayamanne 0b07869
empty
DonJayamanne 88b625d
Revert
DonJayamanne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ pub struct EnvVariables { | |
pub programdata: Option<String>, | ||
pub homedrive: Option<String>, | ||
pub conda_root: Option<String>, | ||
pub conda: Option<String>, | ||
pub conda_prefix: Option<String>, | ||
pub condarc: Option<String>, | ||
pub xdg_config_home: Option<String>, | ||
|
@@ -33,7 +34,8 @@ impl EnvVariables { | |
allusersprofile: env.get_env_var("ALLUSERSPROFILE".to_string()), | ||
programdata: env.get_env_var("PROGRAMDATA".to_string()), | ||
homedrive: env.get_env_var("HOMEDRIVE".to_string()), | ||
conda_root: env.get_env_var("ALLUSERSPROFILE".to_string()), | ||
conda_root: env.get_env_var("CONDA_ROOT".to_string()), | ||
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. First bug from real python on CI |
||
conda: env.get_env_var("CONDA".to_string()), | ||
conda_prefix: env.get_env_var("CONDA_PREFIX".to_string()), | ||
condarc: env.get_env_var("CONDARC".to_string()), | ||
xdg_config_home: env.get_env_var("XDG_CONFIG_HOME".to_string()), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
mod common; | ||
|
||
#[cfg(unix)] | ||
#[test] | ||
fn conda_ci() { | ||
use pet_conda::Conda; | ||
use pet_core::{os_environment::EnvironmentApi, Locator}; | ||
|
||
let env = EnvironmentApi::new(); | ||
|
||
let conda = Conda::from(&env); | ||
let result = conda.find(); | ||
println!("SERVER CI Started"); | ||
println!("SERVER CI REsults{:?}", result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is harmless, given this runs in < 100ms
I want this running everytime so we can see the results.