-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to bare Windows GPU VMs and fix build issues (#475)
* Updating AzureDevOps pipeline agent pool to use a barebones Windows GPU VM. * Added a AzureDevOps pipeline for windows. * Added a conda init step for powershell. * Adding conda to PATH as a separate step * Pinning pillow to 6.1 to fix issues listed in: python-pillow/Pillow#4130 * chained powershell commands * Updated AzureDevOps yml file to use the inline powershell script syntax. * Moved to using inline commands + Invoke-Expression syntax * Adding indentation for chained commands. * Moving to the literal block style indicator for yaml for chained commands. * Using call activate instead of source activate when activating the conda environment through powershell. * Switching to script steps instead of using powershell steps for conda operations. * Fixed the numpy.float64 issue by moving to a fork with the upstream fixes for the issue. * Fixed the numpy.float64 issue in utils/cv/detection/plot.py
- Loading branch information
Showing
5 changed files
with
54 additions
and
6 deletions.
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
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,46 @@ | ||
# Unit and integration test steps | ||
steps: | ||
|
||
- powershell: | | ||
Write-Host '##vso[task.prependpath]$env:CONDA\Scripts' | ||
displayName: Add conda to PATH | ||
|
||
- script: | | ||
conda remove --name cv --all --force -y | ||
displayName: 'Remove conda env in case it was not created correctly' | ||
|
||
- script: | | ||
conda env create -f environment.yml | ||
displayName: 'Create and activate conda environment' | ||
|
||
- script: | | ||
conda env list | ||
displayName: 'List conda environments to ensure one was created' | ||
|
||
- script: | | ||
call activate cv | ||
pytest --durations 100 tests --junitxml=junit/test-unitttest.xml -m "not azuremlnotebooks and not linuxgpu" | ||
displayName: 'Run unit and (only on Linux GPU) integration tests' | ||
|
||
- script: | | ||
echo Remove Conda Environment | ||
conda remove -n cv --all -q --force -y | ||
echo Done Cleanup | ||
displayName: 'Clean up the newly created environment' | ||
condition: always() | ||
|
||
- script: | | ||
conda env list | ||
displayName: 'List conda environments to verify cleanup of the new environment' | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test-unitttest.xml' | ||
testRunTitle: 'Test results for PyTest' | ||
|
||
- task: ComponentGovernanceComponentDetection@0 | ||
inputs: | ||
scanType: 'Register' | ||
verbosity: 'Verbose' | ||
alertWarningLevel: 'High' | ||
|
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