-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Conglomerated changes to optimize venv
usage in pipeline
#42486
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 1 commit
50893f1
3e3cbe8
83021b0
1cc9be9
af1804a
7414d0f
bd7188b
b6f7baf
241c184
b5ec512
a4c208f
436ef1b
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,26 @@ | ||
|
||
steps: | ||
- task: Bash@3 | ||
displayName: 'Install uv (Linux/macOS)' | ||
inputs: | ||
targetType: inline | ||
script: | | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
condition: or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin')) | ||
|
||
- task: Bash@3 | ||
inputs: | ||
targetType: inline | ||
script: | | ||
echo "##vso[task.prependpath]$HOME/.local/bin" | ||
displayName: 'Prepend path for MacOS' | ||
condition: eq(variables['Agent.OS'], 'Darwin') | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Install uv (Windows)' | ||
inputs: | ||
targetType: inline | ||
script: | | ||
iex (irm https://astral.sh/uv/install.ps1) | ||
Write-Host "##vso[task.prependpath]C:\Users\cloudtest\.local\bin" | ||
scbedd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
condition: eq(variables['Agent.OS'], 'Windows_NT') |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5,7 +5,7 @@ parameters: | |||||||||||||
|
||||||||||||||
steps: | ||||||||||||||
- pwsh: | | ||||||||||||||
python -m pip install virtualenv | ||||||||||||||
uv pip install virtualenv | ||||||||||||||
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. This step should include error handling to fall back to
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback 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 think you're probably right here. Will make an adjustment. |
||||||||||||||
displayName: Ensure virtualenv installed | ||||||||||||||
- pwsh: | | ||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.